mirror of https://github.com/ArduPilot/ardupilot
Enabled Ch7 simple mode switching
This commit is contained in:
parent
69dd8264e6
commit
9931cacec7
|
@ -14,11 +14,11 @@ static void read_control_switch()
|
||||||
|
|
||||||
set_mode(flight_modes[switchPosition]);
|
set_mode(flight_modes[switchPosition]);
|
||||||
|
|
||||||
#if CH7_OPTION != CH7_SIMPLE_MODE
|
if(g.ch7_option == CH7_SIMPLE_MODE){
|
||||||
// setup Simple mode
|
// setup Simple mode
|
||||||
// do we enable simple mode?
|
// do we enable simple mode?
|
||||||
do_simple = (g.simple_modes & (1 << switchPosition));
|
do_simple = (g.simple_modes & (1 << switchPosition));
|
||||||
#endif
|
}
|
||||||
}else{
|
}else{
|
||||||
switch_debouncer = true;
|
switch_debouncer = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue