Skip to content

Commit 7cafdb9

Browse files
committed
Recognize channel flips on just 100ms diff.
This allows using the APM mode switch as a normal channel rotation switch just like you'd use a 3 position switch.
1 parent 96498ae commit 7cafdb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MinimOSD_Extra_Plane_Pre_release_Beta/OSD_Panels.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,9 @@ void panOff(){
489489
// Rotation switch
490490
else {
491491
// Switch changed from its last position
492-
if (abs (ch_raw - ch_raw_prev1) > 200) {
492+
if (abs (ch_raw - ch_raw_prev1) > 100) {
493493
// but is the same than 2 positions ago
494-
if (abs (ch_raw - ch_raw_prev2) < 200) {
494+
if (abs (ch_raw - ch_raw_prev2) < 100) {
495495
osd.closePanel();
496496
// and it's been less than 1 sec since the position switch and back
497497
if (osd_switch_time + 1000 > millis()) {

0 commit comments

Comments
 (0)