Sub: Don't initialize ch5 mode switch

Missed this when phasing out ch5 mode switch
This commit is contained in:
Jacob Walser 2017-04-05 16:21:34 -04:00
parent 8634fb47ea
commit 1d3d6c064e
1 changed files with 2 additions and 6 deletions

View File

@ -46,12 +46,8 @@ void Sub::init_rc_in()
#if CONFIG_HAL_BOARD != HAL_BOARD_SITL
// initialize rc input to 1500 on control channels (rather than 0)
for (int i = 0; i < 7; i++) {
if (i == 4) {
hal.rcin->set_override(i, 1100); // Channel 5 mode selection
} else {
hal.rcin->set_override(i, 1500);
}
for (int i = 0; i < 6; i++) {
hal.rcin->set_override(i, 1500);
}
#endif
}