Skip to content

Commit

Permalink
[guided] add some defines to set the update flags
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Aug 22, 2017
1 parent 1ec5b33 commit d1b7d79
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sw/airborne/firmwares/rotorcraft/autopilot_guided.h
Expand Up @@ -88,5 +88,17 @@ extern bool autopilot_guided_move_ned(float vx, float vy, float vz, float headin
*/
extern void autopilot_guided_update(uint8_t flags, float x, float y, float z, float yaw);

/** Bitmask for setting the flags attribute in autopilot_guided_update function
* See function description for more details
*/
#define GUIDED_FLAG_XY_OFFSET (1<<0)
#define GUIDED_FLAG_XY_BODY (1<<1)
#define GUIDED_FLAG_Z_OFFSET (1<<2)
#define GUIDED_FLAG_YAW_OFFSET (1<<3)
#define GUIDED_FLAG_XY_VEL (1<<5)
#define GUIDED_FLAG_2_VEL (1<<6)
#define GUIDED_FLAG_YAW_RATE (1<<7)


#endif /* AUTOPILOT_GUIDED_H */

0 comments on commit d1b7d79

Please sign in to comment.