APM:Libraries
|
Go to the source code of this file.
#define API_VERSION_LENGTH 2 |
Definition at line 70 of file msp_protocol.h.
#define API_VERSION_MAJOR 1 |
Definition at line 67 of file msp_protocol.h.
#define API_VERSION_MINOR 37 |
Definition at line 68 of file msp_protocol.h.
#define ARDUPILOT_IDENTIFIER "ARDU" |
Definition at line 78 of file msp_protocol.h.
#define BASEFLIGHT_IDENTIFIER "BAFL"; |
Definition at line 73 of file msp_protocol.h.
#define BETAFLIGHT_IDENTIFIER "BTFL" |
Definition at line 74 of file msp_protocol.h.
#define BOARD_HARDWARE_REVISION_LENGTH 2 |
Definition at line 85 of file msp_protocol.h.
#define BOARD_IDENTIFIER_LENGTH 4 |
Definition at line 84 of file msp_protocol.h.
#define CAP_BASEFLIGHT_CONFIG ((uint32_t)1 << 30) |
Definition at line 89 of file msp_protocol.h.
#define CAP_DYNBALANCE ((uint32_t)1 << 2) |
Definition at line 97 of file msp_protocol.h.
#define CAP_EXTAUX ((uint32_t)1 << 5) |
Definition at line 100 of file msp_protocol.h.
#define CAP_FLAPS ((uint32_t)1 << 3) |
Definition at line 98 of file msp_protocol.h.
#define CAP_NAVCAP ((uint32_t)1 << 4) |
Definition at line 99 of file msp_protocol.h.
#define CAP_NAVI_VERSION_BIT_1_LSB ((uint32_t)1 << 28) |
Definition at line 95 of file msp_protocol.h.
#define CAP_NAVI_VERSION_BIT_2 ((uint32_t)1 << 29) |
Definition at line 94 of file msp_protocol.h.
#define CAP_NAVI_VERSION_BIT_3 ((uint32_t)1 << 30) |
Definition at line 93 of file msp_protocol.h.
#define CAP_NAVI_VERSION_BIT_4_MSB ((uint32_t)1 << 31) |
Definition at line 92 of file msp_protocol.h.
#define CAP_PLATFORM_32BIT ((uint32_t)1 << 31) |
Definition at line 88 of file msp_protocol.h.
#define CLEANFLIGHT_IDENTIFIER "CLFL" |
Definition at line 75 of file msp_protocol.h.
#define FLIGHT_CONTROLLER_IDENTIFIER_LENGTH 4 |
Definition at line 80 of file msp_protocol.h.
#define FLIGHT_CONTROLLER_VERSION_LENGTH 3 |
Definition at line 81 of file msp_protocol.h.
#define FLIGHT_CONTROLLER_VERSION_MASK 0xFFF |
Definition at line 82 of file msp_protocol.h.
#define INAV_IDENTIFIER "INAV" |
Definition at line 76 of file msp_protocol.h.
#define MSP_ACC_CALIBRATION 205 |
Definition at line 294 of file msp_protocol.h.
#define MSP_ACC_TRIM 240 |
Definition at line 329 of file msp_protocol.h.
#define MSP_ADJUSTMENT_RANGES 52 |
Definition at line 144 of file msp_protocol.h.
#define MSP_ADVANCED_CONFIG 90 |
Definition at line 210 of file msp_protocol.h.
#define MSP_ALTITUDE 109 |
Definition at line 259 of file msp_protocol.h.
#define MSP_ANALOG 110 |
Definition at line 260 of file msp_protocol.h.
#define MSP_API_VERSION 1 |
Definition at line 102 of file msp_protocol.h.
#define MSP_ARMING_CONFIG 61 |
Definition at line 159 of file msp_protocol.h.
#define MSP_ATTITUDE 108 |
Definition at line 258 of file msp_protocol.h.
#define MSP_BATTERY_CONFIG 32 |
Definition at line 114 of file msp_protocol.h.
#define MSP_BATTERY_STATE 130 |
Definition at line 282 of file msp_protocol.h.
#define MSP_BEEPER_CONFIG 184 |
Definition at line 237 of file msp_protocol.h.
#define MSP_BF_CONFIG 66 |
Definition at line 170 of file msp_protocol.h.
#define MSP_BLACKBOX_CONFIG 80 |
Definition at line 194 of file msp_protocol.h.
#define MSP_BOARD_ALIGNMENT_CONFIG 38 |
Definition at line 123 of file msp_protocol.h.
#define MSP_BOARD_INFO 4 |
Definition at line 105 of file msp_protocol.h.
#define MSP_BOXIDS 119 |
Definition at line 272 of file msp_protocol.h.
#define MSP_BOXNAMES 116 |
Definition at line 269 of file msp_protocol.h.
#define MSP_BUILD_INFO 5 |
Definition at line 106 of file msp_protocol.h.
#define MSP_CAMERA_CONTROL 98 |
Definition at line 222 of file msp_protocol.h.
#define MSP_CF_SERIAL_CONFIG 54 |
Definition at line 148 of file msp_protocol.h.
#define MSP_COMP_GPS 107 |
Definition at line 257 of file msp_protocol.h.
#define MSP_COMPASS_CONFIG 133 |
Definition at line 285 of file msp_protocol.h.
#define MSP_COPY_PROFILE 183 |
Definition at line 235 of file msp_protocol.h.
#define MSP_CURRENT_METER_CONFIG 40 |
Definition at line 126 of file msp_protocol.h.
#define MSP_CURRENT_METERS 129 |
Definition at line 281 of file msp_protocol.h.
#define MSP_DATAFLASH_ERASE 72 |
Definition at line 180 of file msp_protocol.h.
#define MSP_DATAFLASH_READ 71 |
Definition at line 179 of file msp_protocol.h.
#define MSP_DATAFLASH_SUMMARY 70 |
Definition at line 178 of file msp_protocol.h.
#define MSP_DEBUG 254 |
Definition at line 321 of file msp_protocol.h.
#define MSP_DEBUGMSG 253 |
Definition at line 320 of file msp_protocol.h.
#define MSP_DISPLAYPORT 182 |
Definition at line 233 of file msp_protocol.h.
#define MSP_EEPROM_WRITE 250 |
Definition at line 317 of file msp_protocol.h.
#define MSP_ESC_SENSOR_DATA 134 |
Definition at line 286 of file msp_protocol.h.
#define MSP_FAILSAFE_CONFIG 75 |
Definition at line 186 of file msp_protocol.h.
#define MSP_FC_VARIANT 2 |
Definition at line 103 of file msp_protocol.h.
#define MSP_FC_VERSION 3 |
Definition at line 104 of file msp_protocol.h.
#define MSP_FEATURE_CONFIG 36 |
Definition at line 120 of file msp_protocol.h.
#define MSP_FILTER_CONFIG 92 |
Definition at line 213 of file msp_protocol.h.
#define MSP_GPS_CONFIG 132 |
Definition at line 284 of file msp_protocol.h.
#define MSP_GPSSTATISTICS 166 |
Definition at line 328 of file msp_protocol.h.
#define MSP_GPSSVINFO 164 |
Definition at line 327 of file msp_protocol.h.
#define MSP_LED_COLORS 46 |
Definition at line 135 of file msp_protocol.h.
#define MSP_LED_STRIP_CONFIG 48 |
Definition at line 138 of file msp_protocol.h.
#define MSP_LED_STRIP_MODECOLOR 127 |
Definition at line 279 of file msp_protocol.h.
#define MSP_MAG_CALIBRATION 206 |
Definition at line 295 of file msp_protocol.h.
#define MSP_MIXER_CONFIG 42 |
Definition at line 129 of file msp_protocol.h.
#define MSP_MODE_RANGES 34 |
Definition at line 117 of file msp_protocol.h.
#define MSP_MOTOR 104 |
Definition at line 254 of file msp_protocol.h.
#define MSP_MOTOR_3D_CONFIG 124 |
Definition at line 276 of file msp_protocol.h.
#define MSP_MOTOR_CONFIG 131 |
Definition at line 283 of file msp_protocol.h.
#define MSP_NAME 10 |
Definition at line 108 of file msp_protocol.h.
#define MSP_NAV_CONFIG 122 |
Definition at line 275 of file msp_protocol.h.
#define MSP_NAV_STATUS 121 |
Definition at line 274 of file msp_protocol.h.
#define MSP_OSD_CHAR_READ 86 |
Definition at line 203 of file msp_protocol.h.
#define MSP_OSD_CHAR_WRITE 87 |
Definition at line 204 of file msp_protocol.h.
#define MSP_OSD_CONFIG 84 |
Definition at line 200 of file msp_protocol.h.
#define MSP_OSD_VIDEO_CONFIG 180 |
Definition at line 229 of file msp_protocol.h.
#define MSP_PID 112 |
Definition at line 262 of file msp_protocol.h.
#define MSP_PID_ADVANCED 94 |
Definition at line 216 of file msp_protocol.h.
#define MSP_PID_CONTROLLER 59 |
Definition at line 156 of file msp_protocol.h.
#define MSP_PIDNAMES 117 |
Definition at line 270 of file msp_protocol.h.
#define MSP_PROTOCOL_VERSION 0 |
MSP Guidelines, emphasis is used to clarify.
Each FlightController (FC, Server) MUST change the API version when any MSP command is added, deleted, or changed.
If you fork the FC source code and release your own version, you MUST change the Flight Controller Identifier.
NEVER release a modified copy of this code that shares the same Flight controller IDENT and API version if the API doesn't match EXACTLY.
Consumers of the API (API clients) SHOULD first attempt to get a response from the MSP_API_VERSION command. If no response is obtained then client MAY try the legacy MSP_IDENT command.
API consumers should ALWAYS handle communication failures gracefully and attempt to continue without the information if possible. Clients MAY log/display a suitable message.
API clients should NOT attempt any communication if they can't handle the returned API MAJOR VERSION.
API clients SHOULD attempt communication if the API MINOR VERSION has increased from the time the API client was written and handle command failures gracefully. Clients MAY disable functionality that depends on the commands while still leaving other functionality intact. that the newer API version may cause problems before using API commands that change FC state.
It is for this reason that each MSP command should be specific as possible, such that changes to commands break as little functionality as possible.
API client authors MAY use a compatibility matrix/table when determining if they can support a given command from a given flight controller at a given api version level.
Developers MUST NOT create new MSP commands that do more than one thing.
Failure to follow these guidelines will likely invoke the wrath of developers trying to write tools that use the API and the users of those tools.
Definition at line 65 of file msp_protocol.h.
#define MSP_RAW_GPS 106 |
Definition at line 256 of file msp_protocol.h.
#define MSP_RAW_IMU 102 |
Definition at line 252 of file msp_protocol.h.
#define MSP_RC 105 |
Definition at line 255 of file msp_protocol.h.
#define MSP_RC_DEADBAND 125 |
Definition at line 277 of file msp_protocol.h.
#define MSP_RC_TUNING 111 |
Definition at line 261 of file msp_protocol.h.
#define MSP_REBOOT 68 |
Definition at line 173 of file msp_protocol.h.
#define MSP_RESERVE_1 251 |
Definition at line 318 of file msp_protocol.h.
#define MSP_RESERVE_2 252 |
Definition at line 319 of file msp_protocol.h.
#define MSP_RESERVE_3 255 |
Definition at line 322 of file msp_protocol.h.
#define MSP_RESET_CONF 208 |
Definition at line 298 of file msp_protocol.h.
#define MSP_RSSI_CONFIG 50 |
Definition at line 141 of file msp_protocol.h.
#define MSP_RTC 247 |
Definition at line 335 of file msp_protocol.h.
#define MSP_RX_CONFIG 44 |
Definition at line 132 of file msp_protocol.h.
#define MSP_RX_MAP 64 |
Definition at line 165 of file msp_protocol.h.
#define MSP_RXFAIL_CONFIG 77 |
Definition at line 189 of file msp_protocol.h.
#define MSP_SDCARD_SUMMARY 79 |
Definition at line 192 of file msp_protocol.h.
#define MSP_SELECT_SETTING 210 |
Definition at line 300 of file msp_protocol.h.
#define MSP_SENSOR_ALIGNMENT 126 |
Definition at line 278 of file msp_protocol.h.
#define MSP_SENSOR_CONFIG 96 |
Definition at line 219 of file msp_protocol.h.
#define MSP_SERVO 103 |
Definition at line 253 of file msp_protocol.h.
#define MSP_SERVO_CONFIGURATIONS 120 |
Definition at line 273 of file msp_protocol.h.
#define MSP_SERVO_MIX_RULES 241 |
Definition at line 331 of file msp_protocol.h.
#define MSP_SET_4WAY_IF 245 |
Definition at line 333 of file msp_protocol.h.
#define MSP_SET_ACC_TRIM 239 |
Definition at line 330 of file msp_protocol.h.
#define MSP_SET_ADJUSTMENT_RANGE 53 |
Definition at line 145 of file msp_protocol.h.
#define MSP_SET_ADVANCED_CONFIG 91 |
Definition at line 211 of file msp_protocol.h.
#define MSP_SET_ARMING_CONFIG 62 |
Definition at line 160 of file msp_protocol.h.
#define MSP_SET_ARMING_DISABLED 99 |
Definition at line 224 of file msp_protocol.h.
#define MSP_SET_BATTERY_CONFIG 33 |
Definition at line 115 of file msp_protocol.h.
#define MSP_SET_BEEPER_CONFIG 185 |
Definition at line 238 of file msp_protocol.h.
#define MSP_SET_BF_CONFIG 67 |
Definition at line 171 of file msp_protocol.h.
#define MSP_SET_BLACKBOX_CONFIG 81 |
Definition at line 195 of file msp_protocol.h.
#define MSP_SET_BOARD_ALIGNMENT_CONFIG 39 |
Definition at line 124 of file msp_protocol.h.
#define MSP_SET_CF_SERIAL_CONFIG 55 |
Definition at line 149 of file msp_protocol.h.
#define MSP_SET_COMPASS_CONFIG 224 |
Definition at line 312 of file msp_protocol.h.
#define MSP_SET_CURRENT_METER_CONFIG 41 |
Definition at line 127 of file msp_protocol.h.
#define MSP_SET_FAILSAFE_CONFIG 76 |
Definition at line 187 of file msp_protocol.h.
#define MSP_SET_FEATURE_CONFIG 37 |
Definition at line 121 of file msp_protocol.h.
#define MSP_SET_FILTER_CONFIG 93 |
Definition at line 214 of file msp_protocol.h.
#define MSP_SET_GPS_CONFIG 223 |
Definition at line 311 of file msp_protocol.h.
#define MSP_SET_HEADING 211 |
Definition at line 301 of file msp_protocol.h.
#define MSP_SET_LED_COLORS 47 |
Definition at line 136 of file msp_protocol.h.
#define MSP_SET_LED_STRIP_CONFIG 49 |
Definition at line 139 of file msp_protocol.h.
#define MSP_SET_LED_STRIP_MODECOLOR 221 |
Definition at line 309 of file msp_protocol.h.
#define MSP_SET_MIXER_CONFIG 43 |
Definition at line 130 of file msp_protocol.h.
#define MSP_SET_MODE_RANGE 35 |
Definition at line 118 of file msp_protocol.h.
#define MSP_SET_MOTOR 214 |
Definition at line 303 of file msp_protocol.h.
#define MSP_SET_MOTOR_3D_CONFIG 217 |
Definition at line 305 of file msp_protocol.h.
#define MSP_SET_MOTOR_CONFIG 222 |
Definition at line 310 of file msp_protocol.h.
#define MSP_SET_NAME 11 |
Definition at line 109 of file msp_protocol.h.
#define MSP_SET_NAV_CONFIG 215 |
Definition at line 304 of file msp_protocol.h.
#define MSP_SET_OSD_CONFIG 85 |
Definition at line 201 of file msp_protocol.h.
#define MSP_SET_OSD_VIDEO_CONFIG 181 |
Definition at line 230 of file msp_protocol.h.
#define MSP_SET_PID 202 |
Definition at line 290 of file msp_protocol.h.
#define MSP_SET_PID_ADVANCED 95 |
Definition at line 217 of file msp_protocol.h.
#define MSP_SET_PID_CONTROLLER 60 |
Definition at line 157 of file msp_protocol.h.
#define MSP_SET_RAW_GPS 201 |
Definition at line 289 of file msp_protocol.h.
#define MSP_SET_RAW_RC 200 |
Definition at line 288 of file msp_protocol.h.
#define MSP_SET_RC_DEADBAND 218 |
Definition at line 306 of file msp_protocol.h.
#define MSP_SET_RC_TUNING 204 |
Definition at line 293 of file msp_protocol.h.
#define MSP_SET_RESET_CURR_PID 219 |
Definition at line 307 of file msp_protocol.h.
#define MSP_SET_RSSI_CONFIG 51 |
Definition at line 142 of file msp_protocol.h.
#define MSP_SET_RTC 246 |
Definition at line 334 of file msp_protocol.h.
#define MSP_SET_RX_CONFIG 45 |
Definition at line 133 of file msp_protocol.h.
#define MSP_SET_RX_MAP 65 |
Definition at line 166 of file msp_protocol.h.
#define MSP_SET_RXFAIL_CONFIG 78 |
Definition at line 190 of file msp_protocol.h.
#define MSP_SET_SENSOR_ALIGNMENT 220 |
Definition at line 308 of file msp_protocol.h.
#define MSP_SET_SENSOR_CONFIG 97 |
Definition at line 220 of file msp_protocol.h.
#define MSP_SET_SERVO_CONFIGURATION 212 |
Definition at line 302 of file msp_protocol.h.
#define MSP_SET_SERVO_MIX_RULE 242 |
Definition at line 332 of file msp_protocol.h.
#define MSP_SET_TRANSPONDER_CONFIG 83 |
Definition at line 198 of file msp_protocol.h.
#define MSP_SET_TX_INFO 186 |
Definition at line 240 of file msp_protocol.h.
#define MSP_SET_VOLTAGE_METER_CONFIG 57 |
Definition at line 152 of file msp_protocol.h.
#define MSP_SET_VTX_CONFIG 89 |
Definition at line 207 of file msp_protocol.h.
#define MSP_SET_WP 209 |
Definition at line 299 of file msp_protocol.h.
#define MSP_SONAR_ALTITUDE 58 |
Definition at line 154 of file msp_protocol.h.
#define MSP_STATUS 101 |
Definition at line 251 of file msp_protocol.h.
#define MSP_STATUS_EX 150 |
Definition at line 325 of file msp_protocol.h.
#define MSP_TRANSPONDER_CONFIG 82 |
Definition at line 197 of file msp_protocol.h.
#define MSP_TX_INFO 187 |
Definition at line 241 of file msp_protocol.h.
#define MSP_UID 160 |
Definition at line 326 of file msp_protocol.h.
#define MSP_VOLTAGE_METER_CONFIG 56 |
Definition at line 151 of file msp_protocol.h.
#define MSP_VOLTAGE_METERS 128 |
Definition at line 280 of file msp_protocol.h.
#define MSP_VTX_CONFIG 88 |
Definition at line 206 of file msp_protocol.h.
#define MSP_WP 118 |
Definition at line 271 of file msp_protocol.h.
#define MULTIWII_IDENTIFIER "MWII"; |
Definition at line 72 of file msp_protocol.h.
#define RACEFLIGHT_IDENTIFIER "RCFL" |
Definition at line 77 of file msp_protocol.h.