From 66a8775895368bfc219a36f8b45fa7f2bf51db45 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 31 Aug 2022 12:56:41 +0900 Subject: [PATCH] AP_Mount: remove param set of MNT1_TYPE to 1 if servo outputs defined --- libraries/AP_Mount/AP_Mount.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index 5aa143c15f..2df7a37339 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -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();