Copter: set_range on motor interlock channel

This commit is contained in:
Peter Barker 2020-01-09 15:22:37 +11:00 committed by Peter Barker
parent beb9d0b761
commit 0986ed0a81
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ float Copter::get_pilot_desired_rotor_speed() const
{
RC_Channel *rc_ptr = rc().find_channel_for_option(RC_Channel::AUX_FUNC::MOTOR_INTERLOCK);
if (rc_ptr != nullptr) {
rc_ptr->set_range(1000);
return (float)rc_ptr->get_control_in() * 0.001f;
}
return 0.0f;