[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:
Gautier Hattenberger
2013-12-29 15:07:58 +01:00
parent 788b887179
commit 8259716fc3
+2 -2
View File
@@ -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) { \