[guided] add some defines to set the update flags

This commit is contained in:
Gautier Hattenberger
2017-08-22 18:29:40 +02:00
parent 1ec5b33dff
commit d1b7d790e4
@@ -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 */