AC_PID: Support new RC_Channels::read_input()
This commit is contained in:
parent
73abbbd8c8
commit
1d60b0ec62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user