|
|
|
@ -45,7 +45,7 @@ void RC_Channel_Rover::init_aux_function(const aux_func_t ch_option, const AuxSw
@@ -45,7 +45,7 @@ void RC_Channel_Rover::init_aux_function(const aux_func_t ch_option, const AuxSw
|
|
|
|
|
case AUX_FUNC::WALKING_HEIGHT: |
|
|
|
|
case AUX_FUNC::RTL: |
|
|
|
|
case AUX_FUNC::SAILBOAT_TACK: |
|
|
|
|
case AUX_FUNC::SAVE_TRIM: |
|
|
|
|
case AUX_FUNC::TRIM_TO_CURRENT_SERVO_RC: |
|
|
|
|
case AUX_FUNC::SAVE_WP: |
|
|
|
|
case AUX_FUNC::SIMPLE: |
|
|
|
|
case AUX_FUNC::SMART_RTL: |
|
|
|
@ -230,7 +230,7 @@ bool RC_Channel_Rover::do_aux_function(const aux_func_t ch_option, const AuxSwit
@@ -230,7 +230,7 @@ bool RC_Channel_Rover::do_aux_function(const aux_func_t ch_option, const AuxSwit
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
// save steering trim
|
|
|
|
|
case AUX_FUNC::SAVE_TRIM: |
|
|
|
|
case AUX_FUNC::TRIM_TO_CURRENT_SERVO_RC: |
|
|
|
|
if (!rover.g2.motors.have_skid_steering() && rover.arming.is_armed() && |
|
|
|
|
(rover.control_mode != &rover.mode_loiter) |
|
|
|
|
&& (rover.control_mode != &rover.mode_hold) && ch_flag == AuxSwitchPos::HIGH) { |
|
|
|
|