mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 20:10:36 +08:00
commander: consider COM_MOT_TEST_EN for COMMAND_ACTUATOR_TEST as well
This commit is contained in:
@@ -1508,6 +1508,10 @@ Commander::handle_command_actuator_test(const vehicle_command_s &cmd)
|
||||
return vehicle_command_s::VEHICLE_CMD_RESULT_DENIED;
|
||||
}
|
||||
|
||||
if (_param_com_mot_test_en.get() != 1) {
|
||||
return vehicle_command_s::VEHICLE_CMD_RESULT_DENIED;
|
||||
}
|
||||
|
||||
actuator_test_s actuator_test{};
|
||||
actuator_test.timestamp = hrt_absolute_time();
|
||||
actuator_test.function = (int)(cmd.param5 + 0.5);
|
||||
|
||||
Reference in New Issue
Block a user