Sub: force min/max/trim on inputs 1~7

This commit is contained in:
Jacob Walser 2016-10-13 18:24:50 -04:00 committed by Andrew Tridgell
parent 0b0cda02cc
commit 5ea7d3443d
1 changed files with 7 additions and 3 deletions

View File

@ -48,9 +48,13 @@ void Sub::init_rc_in()
=======
>>>>>>> Changed to ArduCopter as the base code.
// force throttle trim to 1100
channel_throttle->set_radio_trim(1100);
channel_throttle->save_eeprom();
for(int i = 0; i < 7; i++) {
RC_Channel *ch = RC_Channel::rc_channel(i);
ch->set_radio_max(1900);
ch->set_radio_min(1100);
ch->set_radio_trim(1500);
ch->save_eeprom();
}
//set auxiliary servo ranges
// g.rc_5.set_range(0,1000);