mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 20:04:09 +08:00
[nav] Set Alt and Pos here
This commit is contained in:
@@ -78,4 +78,11 @@ void common_nav_periodic_task_4Hz(void);
|
||||
FALSE; \
|
||||
})
|
||||
|
||||
#define NavSetWaypointPosAndAltHere(_wp) ({ \
|
||||
waypoints[_wp].x = stateGetPositionEnu_f()->x; \
|
||||
waypoints[_wp].y = stateGetPositionEnu_f()->y; \
|
||||
waypoints[_wp].a = stateGetPositionEnu_f()->z + ground_alt; \
|
||||
FALSE; \
|
||||
})
|
||||
|
||||
#endif /* COMMON_NAV_H */
|
||||
|
||||
Reference in New Issue
Block a user