mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 21:07:40 +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 NavKillThrottle() { kill_throttle = 1; }
|
||||||
|
|
||||||
#define GetPosX() (stateGetPositionUtm_f()->north)
|
#define GetPosX() (stateGetPositionEnu_f()->x)
|
||||||
#define GetPosY() (stateGetPositionUtm_f()->east)
|
#define GetPosY() (stateGetPositionEnu_f()->y)
|
||||||
#define GetPosAlt() (stateGetPositionUtm_f()->alt)
|
#define GetPosAlt() (stateGetPositionUtm_f()->alt)
|
||||||
|
|
||||||
#define SEND_NAVIGATION(_trans, _dev) { \
|
#define SEND_NAVIGATION(_trans, _dev) { \
|
||||||
|
|||||||
Reference in New Issue
Block a user