mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 03:43:26 +08:00
[nav] GetPosX and GetPosY in nav.h (FW) are in local coordinates
allows to use the macro with sectors detection fix #602
This commit is contained in:
@@ -196,8 +196,8 @@ bool_t nav_approaching_xy(float x, float y, float from_x, float from_y, float ap
|
||||
|
||||
#define NavKillThrottle() { kill_throttle = 1; }
|
||||
|
||||
#define GetPosX() (stateGetPositionUtm_f()->north)
|
||||
#define GetPosY() (stateGetPositionUtm_f()->east)
|
||||
#define GetPosX() (stateGetPositionEnu_f()->x)
|
||||
#define GetPosY() (stateGetPositionEnu_f()->y)
|
||||
#define GetPosAlt() (stateGetPositionUtm_f()->alt)
|
||||
|
||||
#define SEND_NAVIGATION(_trans, _dev) { \
|
||||
|
||||
Reference in New Issue
Block a user