Browse Source

ArduCopter: radio fix passthrough range on heli/coax/single

mission-4.1.18
Pierre Kancir 8 years ago committed by Randy Mackay
parent
commit
436d0f8c84
  1. 2
      ArduCopter/radio.cpp

2
ArduCopter/radio.cpp

@ -182,5 +182,5 @@ void Copter::set_throttle_zero_flag(int16_t throttle_control) @@ -182,5 +182,5 @@ void Copter::set_throttle_zero_flag(int16_t throttle_control)
// pass pilot's inputs to motors library (used to allow wiggling servos while disarmed on heli, single, coax copters)
void Copter::radio_passthrough_to_motors()
{
motors->set_radio_passthrough(channel_roll->get_control_in()/1000.0f, channel_pitch->get_control_in()/1000.0f, channel_throttle->get_control_in()/1000.0f, channel_yaw->get_control_in()/1000.0f);
motors->set_radio_passthrough(channel_roll->norm_input(), channel_pitch->norm_input(), channel_throttle->norm_input(), channel_yaw->norm_input());
}

Loading…
Cancel
Save