AC_PID: Support new RC_Channels::read_input()

This commit is contained in:
Michael du Breuil 2018-04-23 21:32:27 -07:00 committed by Andrew Tridgell
parent 73abbbd8c8
commit 1d60b0ec62

View File

@ -48,7 +48,7 @@ void loop()
radio_trim = RC_Channels::get_radio_in(0);
while (true) {
RC_Channels::set_pwm_all(); // poll the radio for new values
RC_Channels::read_input(); // poll the radio for new values
radio_in = RC_Channels::get_radio_in(0);
error = radio_in - radio_trim;
pid.set_input_filter_all(error);