AP_Mount: remove param set of MNT1_TYPE to 1 if servo outputs defined

This commit is contained in:
Randy Mackay 2022-08-31 12:56:41 +09:00
parent c20ec27c54
commit 66a8775895

View File

@ -50,15 +50,6 @@ void AP_Mount::init()
return;
}
// default mount to servo mount if rc output channels to control roll, tilt or pan have been defined
if (!_params[0].type.configured()) {
if (SRV_Channels::function_assigned(SRV_Channel::Aux_servo_function_t::k_mount_pan) ||
SRV_Channels::function_assigned(SRV_Channel::Aux_servo_function_t::k_mount_tilt) ||
SRV_Channels::function_assigned(SRV_Channel::Aux_servo_function_t::k_mount_roll)) {
_params[0].type.set_and_save(Mount_Type_Servo);
}
}
// perform any required parameter conversion
convert_params();