Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Minor code rearrange

Oleg Kalachev4160b8da078c
diff --git a/flix/flix.ino b/flix/flix.ino
index d474575..4002226 100644
--- a/flix/flix.ino
+++ b/flix/flix.ino
@@ -26,10 +26,10 @@ float dt; // time delta from previous step, s
float loopFreq; // loop frequency, Hz
uint16_t channels[16]; // raw rc channels
float controls[RC_CHANNELS]; // normalized controls in range [-1..1] ([0..1] for throttle)
-float motors[4]; // normalized motors thrust in range [-1..1]
Vector rates; // angular rates, rad/s
Vector acc; // accelerometer data, m/s/s
Quaternion attitude; // estimated attitude
+float motors[4]; // normalized motors thrust in range [-1..1]
void setup()
{