refactor(commander): remove unused parameter COM_MOT_TEST_EN

This commit is contained in:
Matthias Grob
2026-03-17 16:34:34 +01:00
committed by Jacob Dahl
parent 9a5034b187
commit 09cb22f799
5 changed files with 0 additions and 18 deletions
-4
View File
@@ -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));
-1
View File
@@ -343,7 +343,6 @@ private:
(ParamBool<px4::params::COM_HOME_EN>) _param_com_home_en,
(ParamBool<px4::params::COM_HOME_IN_AIR>) _param_com_home_in_air,
(ParamBool<px4::params::COM_FORCE_SAFETY>) _param_com_force_safety,
(ParamBool<px4::params::COM_MOT_TEST_EN>) _param_com_mot_test_en,
(ParamFloat<px4::params::COM_OBC_LOSS_T>) _param_com_obc_loss_t,
(ParamInt<px4::params::COM_PREARM_MODE>) _param_com_prearm_mode,
(ParamInt<px4::params::COM_RC_OVERRIDE>) _param_com_rc_override,
-11
View File
@@ -699,17 +699,6 @@ PARAM_DEFINE_INT32(COM_PREARM_MODE, 0);
*/
PARAM_DEFINE_INT32(COM_FORCE_SAFETY, 0);
/**
* Enable Actuator Testing
*
* If set, enables the actuator test interface via MAVLink (ACTUATOR_TEST), that
* allows spinning the motors and moving the servos for testing purposes.
*
* @boolean
* @group Commander
*/
PARAM_DEFINE_INT32(COM_MOT_TEST_EN, 1);
/**
* Maximum allowed CPU load to still arm.
*