Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Use only STAB mode by default

Oleg Kalachev26a028ff6644
diff --git a/flix/control.ino b/flix/control.ino
index f6625a3..b120931 100644
--- a/flix/control.ino
+++ b/flix/control.ino
@@ -68,10 +68,11 @@ void control() {
}
void interpretRC() {
+ // NOTE: put ACRO or MANUAL modes there if you want to use them
if (controls[RC_CHANNEL_MODE] < 0.25) {
- mode = MANUAL;
+ mode = STAB;
} else if (controls[RC_CHANNEL_MODE] < 0.75) {
- mode = ACRO;
+ mode = STAB;
} else {
mode = STAB;
}