Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Fix critical typo in RC loss fail-safe

Oleg Kalachevfd6bc42e9e50
diff --git a/flix/failsafe.ino b/flix/failsafe.ino
index bb572dc..13a1163 100644
--- a/flix/failsafe.ino
+++ b/flix/failsafe.ino
@@ -20,7 +20,7 @@ void descend() {
mode = STAB;
controls[rollChannel] = 0;
controls[pitchChannel] = 0;
- controls[throttleChannel] = 0;
+ controls[yawChannel] = 0;
controls[throttleChannel] -= dt / DESCEND_TIME;
if (controls[throttleChannel] < 0) controls[throttleChannel] = 0;
}