Defines
comm.h File Reference

Go to the source code of this file.

Defines

#define MAV_ACTION_ADVANCE_STATE   0x01
#define MAV_ACTION_ESTOP   0x00
#define MAV_ACTION_LAND   0x05
#define MAV_ACTION_RETREAT_STATE   0x02
#define MAV_ACTION_TAKEOFF   0x04
#define MAV_ACTION_TOGGLE_ENGAGE   0x03
#define MAV_COMM_ACK   0x01
#define MAV_CTRL_MODE_DIRECT   0x01
#define MAV_CTRL_MODE_DISABLED   0x00
#define MAV_CTRL_MODE_POSITION   0x02
#define MAV_CTRL_MODE_VELOCITY   0x03
#define MAV_DEFAULT_BAUDRATE   460800
#define MAV_KF_PITCH_BIT   4
#define MAV_KF_RESET_BIT   7
#define MAV_KF_ROLL_BIT   3
#define MAV_KF_X_BIT   0
#define MAV_KF_Y_BIT   1
#define MAV_KF_YAW_BIT   5
#define MAV_KF_Z_BIT   2
#define MAV_LL_CMD_GPS_BIT   5
#define MAV_LL_CMD_GPS_MASK   (1<<MAV_LL_CMD_GPS_BIT)
#define MAV_LL_CMD_HEIGHT_BIT   4
#define MAV_LL_CMD_HEIGHT_MASK   (1<<MAV_LL_CMD_HEIGHT_BIT)
#define MAV_LL_CMD_PITCH_BIT   0
#define MAV_LL_CMD_PITCH_MASK   (1<<MAV_LL_CMD_PITCH_BIT)
#define MAV_LL_CMD_ROLL_BIT   1
#define MAV_LL_CMD_ROLL_MASK   (1<<MAV_LL_CMD_ROLL_BIT)
#define MAV_LL_CMD_RPYT_MASK   (MAV_LL_CMD_ROLL_MASK || MAV_LL_CMD_PITCH_MASK || MAV_LL_CMD_YAW_RATE_MASK || MAV_LL_CMD_THRUST_MASK)
#define MAV_LL_CMD_THRUST_BIT   3
#define MAV_LL_CMD_THRUST_MASK   (1<<MAV_LL_CMD_THRUST_BIT)
#define MAV_LL_CMD_YAW_RATE_BIT   2
#define MAV_LL_CMD_YAW_RATE_MASK   (1<<MAV_LL_CMD_YAW_RATE_BIT)
#define MAV_STATE_DISENGAGING   0x02
#define MAV_STATE_ENGAGING   0x01
#define MAV_STATE_ERROR   0xFF
#define MAV_STATE_FLYING   0x05
#define MAV_STATE_IDLE   0x03
#define MAV_STATE_LANDING   0x04
#define MAV_STATE_OFF   0x00

Define Documentation

#define MAV_ACTION_ADVANCE_STATE   0x01

Definition at line 57 of file comm.h.

#define MAV_ACTION_ESTOP   0x00

Definition at line 56 of file comm.h.

#define MAV_ACTION_LAND   0x05

Definition at line 61 of file comm.h.

#define MAV_ACTION_RETREAT_STATE   0x02

Definition at line 58 of file comm.h.

#define MAV_ACTION_TAKEOFF   0x04

Definition at line 60 of file comm.h.

#define MAV_ACTION_TOGGLE_ENGAGE   0x03

Definition at line 59 of file comm.h.

#define MAV_COMM_ACK   0x01

Definition at line 80 of file comm.h.

#define MAV_CTRL_MODE_DIRECT   0x01

Definition at line 74 of file comm.h.

#define MAV_CTRL_MODE_DISABLED   0x00

Definition at line 73 of file comm.h.

#define MAV_CTRL_MODE_POSITION   0x02

Definition at line 75 of file comm.h.

#define MAV_CTRL_MODE_VELOCITY   0x03

Definition at line 76 of file comm.h.

#define MAV_DEFAULT_BAUDRATE   460800

Definition at line 34 of file comm.h.

#define MAV_KF_PITCH_BIT   4

Definition at line 10 of file comm.h.

#define MAV_KF_RESET_BIT   7

Definition at line 12 of file comm.h.

#define MAV_KF_ROLL_BIT   3

Definition at line 9 of file comm.h.

#define MAV_KF_X_BIT   0

Definition at line 6 of file comm.h.

#define MAV_KF_Y_BIT   1

Definition at line 7 of file comm.h.

#define MAV_KF_YAW_BIT   5

Definition at line 11 of file comm.h.

#define MAV_KF_Z_BIT   2

Definition at line 8 of file comm.h.

#define MAV_LL_CMD_GPS_BIT   5

Definition at line 21 of file comm.h.

Definition at line 28 of file comm.h.

#define MAV_LL_CMD_HEIGHT_BIT   4

Definition at line 20 of file comm.h.

Definition at line 27 of file comm.h.

#define MAV_LL_CMD_PITCH_BIT   0

Definition at line 16 of file comm.h.

Definition at line 24 of file comm.h.

#define MAV_LL_CMD_ROLL_BIT   1

Definition at line 17 of file comm.h.

Definition at line 23 of file comm.h.

Definition at line 30 of file comm.h.

#define MAV_LL_CMD_THRUST_BIT   3

Definition at line 19 of file comm.h.

Definition at line 26 of file comm.h.

#define MAV_LL_CMD_YAW_RATE_BIT   2

Definition at line 18 of file comm.h.

Definition at line 25 of file comm.h.

#define MAV_STATE_DISENGAGING   0x02

Definition at line 66 of file comm.h.

#define MAV_STATE_ENGAGING   0x01

Definition at line 65 of file comm.h.

#define MAV_STATE_ERROR   0xFF

Definition at line 70 of file comm.h.

#define MAV_STATE_FLYING   0x05

Definition at line 69 of file comm.h.

#define MAV_STATE_IDLE   0x03

Definition at line 67 of file comm.h.

#define MAV_STATE_LANDING   0x04

Definition at line 68 of file comm.h.

#define MAV_STATE_OFF   0x00

Definition at line 64 of file comm.h.



mav_common
Author(s): Ivan Dryanovski
autogenerated on Thu Jan 2 2014 11:28:00