519,7 → 519,7 |
else // no manual control -> gps position hold active |
{ |
// waypoint trigger logic |
if(GPS_pWaypoint != NULL) // waypoint exist |
if(GPS_pWaypoint != NULL) // pointer to waypoint exist |
{ |
if(GPS_pWaypoint->Position.Status == INVALID) // should never happen |
{ |
549,7 → 549,13 |
WPTime = SetDelay(GPS_pWaypoint->HoldTime * 1000); // set hold time stamp |
} |
} |
} // EOF waypoint trigger logic |
} |
else // pointer to waypoint does not exist |
{ |
// try to catch the first waypoint from the list |
GPS_pWaypoint = WPList_Begin(); |
} |
// EOF waypoint trigger logic |
|
if(GPS_pWaypoint != NULL) // Waypoint exist |
{ |