mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
fix(commander): nack DO_PARACHUTE when the parachute module is not in the build
The unconditional ignore left DO_PARACHUTE without any ack on builds without the parachute module. Only ignore the command when the module is there to ack it, otherwise fall back to the unsupported nack. Signed-off-by: mahima-yoga <mahima@auterion.com>
This commit is contained in:
@@ -1715,7 +1715,12 @@ Commander::handle_command(const vehicle_command_s &cmd)
|
||||
case vehicle_command_s::VEHICLE_CMD_REQUEST_MESSAGE:
|
||||
case vehicle_command_s::VEHICLE_CMD_DO_WINCH:
|
||||
case vehicle_command_s::VEHICLE_CMD_DO_GRIPPER:
|
||||
#if defined(CONFIG_MODULES_PARACHUTE)
|
||||
|
||||
// only ignore when the parachute module is there to ack it, otherwise fall through to the
|
||||
// unsupported nack below
|
||||
case vehicle_command_s::VEHICLE_CMD_DO_PARACHUTE:
|
||||
#endif // CONFIG_MODULES_PARACHUTE
|
||||
case vehicle_command_s::VEHICLE_CMD_EXTERNAL_POSITION_ESTIMATE:
|
||||
case vehicle_command_s::VEHICLE_CMD_REQUEST_CAMERA_INFORMATION:
|
||||
case vehicle_command_s::VEHICLE_CMD_EXTERNAL_ATTITUDE_ESTIMATE:
|
||||
|
||||
Reference in New Issue
Block a user