mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
refactor(commander): remove unused parameter COM_MOT_TEST_EN
This commit is contained in:
1 parent
9a5034b187
commit
09cb22f799
5 files changed
-18
No files matched your search
@@ -1671,10 +1671,6 @@ unsigned Commander::handleCommandActuatorTest(const vehicle_command_s &cmd)
|
||||
return vehicle_command_ack_s::VEHICLE_CMD_RESULT_DENIED;
|
||||
}
|
||||
|
||||
if (_param_com_mot_test_en.get() != 1) {
|
||||
return vehicle_command_ack_s::VEHICLE_CMD_RESULT_DENIED;
|
||||
}
|
||||
|
||||
actuator_test_s actuator_test{};
|
||||
actuator_test.timestamp = hrt_absolute_time();
|
||||
actuator_test.function = static_cast<int>(lroundf(cmd.param5));
|
||||
|
||||
Reference in new issue
Block a user