mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Fixing reversed Simple mode switch
This commit is contained in:
parent
aad45c692f
commit
54c8e1033c
@ -14,9 +14,9 @@ static void read_control_switch()
|
|||||||
|
|
||||||
set_mode(flight_modes[switchPosition]);
|
set_mode(flight_modes[switchPosition]);
|
||||||
|
|
||||||
if(g.ch7_option == CH7_SIMPLE_MODE){
|
if(g.ch7_option != CH7_SIMPLE_MODE){
|
||||||
// setup Simple mode
|
// set Simple mode using stored paramters from Mission planner
|
||||||
// do we enable simple mode?
|
// rather than by the control switch
|
||||||
do_simple = (g.simple_modes & (1 << switchPosition));
|
do_simple = (g.simple_modes & (1 << switchPosition));
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user