Skip to content

Commit

Permalink
add GetAltRef() for flight plan compatibility with v5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed May 29, 2014
1 parent 32bffa6 commit 822e8eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/firmwares/rotorcraft/navigation.h
Expand Up @@ -200,6 +200,7 @@ bool_t nav_approaching_from(uint8_t wp_idx, uint8_t from_idx);
#define GetPosX() (stateGetPositionEnu_f()->x)
#define GetPosY() (stateGetPositionEnu_f()->y)
#define GetPosAlt() (stateGetPositionEnu_f()->z+ground_alt)
#define GetAltRef() (ground_alt)


extern void navigation_update_wp_from_speed(uint8_t wp, struct Int16Vect3 speed_sp, int16_t heading_rate_sp );
Expand Down
1 change: 1 addition & 0 deletions sw/airborne/subsystems/nav.h
Expand Up @@ -199,5 +199,6 @@ bool_t nav_approaching_xy(float x, float y, float from_x, float from_y, float ap
#define GetPosX() (stateGetPositionEnu_f()->x)
#define GetPosY() (stateGetPositionEnu_f()->y)
#define GetPosAlt() (stateGetPositionUtm_f()->alt)
#define GetAltRef() (ground_alt)

#endif /* NAV_H */

0 comments on commit 822e8eb

Please sign in to comment.