mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 18:43:35 +08:00
Handle unsupported commands gracefully in terms of their numerical range. Introduce an error code for out-of-range commands.
This commit is contained in:
@@ -63,8 +63,8 @@ enum NAV_CMD {
|
||||
NAV_CMD_PATHPLANNING = 81,
|
||||
NAV_CMD_DO_JUMP = 177,
|
||||
NAV_CMD_DO_SET_SERVO=183,
|
||||
NAV_CMD_DO_REPEAT_SERVO=184
|
||||
|
||||
NAV_CMD_DO_REPEAT_SERVO=184,
|
||||
NAV_CMD_INVALID=UINT16_MAX /* ensure that casting a large number results in a specific error */
|
||||
};
|
||||
|
||||
enum ORIGIN {
|
||||
|
||||
Reference in New Issue
Block a user