44 #define MANUAL_CONTROL_SETPOINT_SWITCH_POS_NONE 0 45 #define MANUAL_CONTROL_SETPOINT_SWITCH_POS_ON 1 46 #define MANUAL_CONTROL_SETPOINT_SWITCH_POS_MIDDLE 2 47 #define MANUAL_CONTROL_SETPOINT_SWITCH_POS_OFF 3 48 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_NONE 0 49 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_1 1 50 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_2 2 51 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_3 3 52 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_4 4 53 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_5 5 54 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_6 6 55 #define MANUAL_CONTROL_SETPOINT_MODE_SLOT_NUM 6 56 #define MANUAL_CONTROL_SETPOINT_SOURCE_RC 1 57 #define MANUAL_CONTROL_SETPOINT_SOURCE_MAVLINK_0 2 58 #define MANUAL_CONTROL_SETPOINT_SOURCE_MAVLINK_1 3 59 #define MANUAL_CONTROL_SETPOINT_SOURCE_MAVLINK_2 4 60 #define MANUAL_CONTROL_SETPOINT_SOURCE_MAVLINK_3 5 101 static constexpr uint8_t SWITCH_POS_NONE = 0;
102 static constexpr uint8_t SWITCH_POS_ON = 1;
103 static constexpr uint8_t SWITCH_POS_MIDDLE = 2;
104 static constexpr uint8_t SWITCH_POS_OFF = 3;
105 static constexpr uint8_t MODE_SLOT_NONE = 0;
106 static constexpr uint8_t MODE_SLOT_1 = 1;
107 static constexpr uint8_t MODE_SLOT_2 = 2;
108 static constexpr uint8_t MODE_SLOT_3 = 3;
109 static constexpr uint8_t MODE_SLOT_4 = 4;
110 static constexpr uint8_t MODE_SLOT_5 = 5;
111 static constexpr uint8_t MODE_SLOT_6 = 6;
112 static constexpr uint8_t MODE_SLOT_NUM = 6;
113 static constexpr uint8_t SOURCE_RC = 1;
114 static constexpr uint8_t SOURCE_MAVLINK_0 = 2;
115 static constexpr uint8_t SOURCE_MAVLINK_1 = 3;
116 static constexpr uint8_t SOURCE_MAVLINK_2 = 4;
117 static constexpr uint8_t SOURCE_MAVLINK_3 = 5;
API for the uORB lightweight object broker.
uint8_t transition_switch
ORB_DECLARE(manual_control_setpoint)