mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Waypoint storage reworked - store raw waypoint data (MWP-compliant), convert to local coordinates as required
This commit is contained in:
parent
fd28138535
commit
ce18dc94eb
4 changed files with 99 additions and 111 deletions
|
@ -242,10 +242,12 @@ typedef struct {
|
|||
int32_t homeDirection; // deg*100
|
||||
|
||||
/* Waypoint list */
|
||||
navWaypointPosition_t waypointList[NAV_MAX_WAYPOINTS];
|
||||
int8_t waypointCount;
|
||||
int8_t activeWaypointIndex;
|
||||
navWaypoint_t waypointList[NAV_MAX_WAYPOINTS];
|
||||
bool waypointListValid;
|
||||
int8_t waypointCount;
|
||||
|
||||
navWaypointPosition_t activeWaypoint; // Local position and initial bearing, filled on waypoint activation
|
||||
int8_t activeWaypointIndex;
|
||||
|
||||
/* Internals */
|
||||
int16_t rcAdjustment[4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue