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:
mahima-yoga
2026-07-23 15:56:49 +02:00
parent 41d4c10895
commit af0efaf694

View File

@@ -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: