Rev 545 | Rev 576 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 545 | Rev 549 | ||
---|---|---|---|
Line 225... | Line 225... | ||
225 | } |
225 | } |
226 | } |
226 | } |
227 | if(WPIndex) // found a WP in the list |
227 | if(WPIndex) // found a WP in the list |
228 | { |
228 | { |
229 | NaviData.WaypointIndex = 1; |
229 | NaviData.WaypointIndex = 1; |
- | 230 | NewWaypointsReceived = 1; // activates the Waypoint list as soon as CH is started |
|
230 | // update index to POI |
231 | // update index to POI |
231 | if(PointList[WPIndex-1].Heading < 0) POIIndex = (u8)(-PointList[WPIndex-1].Heading); |
232 | if(PointList[WPIndex-1].Heading < 0) POIIndex = (u8)(-PointList[WPIndex-1].Heading); |
232 | else POIIndex = 0; |
233 | else POIIndex = 0; |
233 | } |
234 | } |
234 | else // some points in the list but no WP found |
235 | else // some points in the list but no WP found |
Line 801... | Line 802... | ||
801 | sprintf(pWPL_Store->Name, "POINT%03d ", pWPL_Store->Index); |
802 | sprintf(pWPL_Store->Name, "POINT%03d ", pWPL_Store->Index); |
802 | retval = PointList_Save(filename, pWPL_Store->Name, 1); |
803 | retval = PointList_Save(filename, pWPL_Store->Name, 1); |
Line 803... | Line 804... | ||
803 | 804 | ||
804 | // clear current point list |
805 | // clear current point list |
805 | if((NC_GPS_ModeCharacter != 'w') && (NC_GPS_ModeCharacter != 'W')) PointList_Clear(); |
806 | if((NC_GPS_ModeCharacter != 'w') && (NC_GPS_ModeCharacter != 'W')) PointList_Clear(); |
806 | else |
807 | else // es ist gearde ein Wegpunktflug aktiv -> updaten |
807 | { |
808 | { |
808 | if(FC.StatusFlags & FC_STATUS_FLY) PointList_WPActive(TRUE); |
809 | if(FC.StatusFlags & FC_STATUS_FLY) PointList_WPActive(TRUE); |
809 | GPS_pWaypoint = PointList_WPBegin(); // updates POI index |
810 | GPS_pWaypoint = PointList_WPBegin(); // updates POI index |