Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/mavcommands.h
- Revision:
- 64:d4818fb7813c
- Parent:
- 63:6e4afaa03d07
- Child:
- 66:5d43988d100c
--- a/handle/mavcommands.h Sun Apr 27 14:08:51 2014 +0000 +++ b/handle/mavcommands.h Sun Apr 27 21:53:59 2014 +0000 @@ -106,7 +106,7 @@ setup(); readState=0; while(Mav::getSerial().readable()>0){char input=Mav::getSerial().getc();} - if(hasMoved()){ + if(cLon!=0&&cLat!=0&&hasMoved()){ USB::getSerial().printf("USING NEW WAYPOINT!!!\n"); // Issue count to init waypoint entry Mav::sendOutput(MAVLINK_MSG_ID_COUNT,(char*)&issueCount,sizeof(MAV_COUNT));