Copter: Support new RC_Channels::read_input()

This commit is contained in:
Michael du Breuil 2018-04-23 21:20:57 -07:00 committed by Andrew Tridgell
parent 2deac7238c
commit 91a48a5040
1 changed files with 1 additions and 2 deletions

View File

@ -95,9 +95,8 @@ void Copter::read_radio()
{
uint32_t tnow_ms = millis();
if (RC_Channels::has_new_input()) {
if (RC_Channels::read_input()) {
ap.new_radio_frame = true;
RC_Channels::set_pwm_all();
set_throttle_and_failsafe(channel_throttle->get_radio_in());
set_throttle_zero_flag(channel_throttle->get_control_in());