Making an ESP32-based quadcopter from scratch
Python arduinoautopilotcontrol-theorydroneesp32flight-controlflight-controllermavlinkquadcopterquadcopter-firmwareuav
Minor code rearrange
Oleg Kalachev4160b8da078c
diff --git a/flix/flix.ino b/flix/flix.inoindex d474575..4002226 100644--- a/flix/flix.ino+++ b/flix/flix.ino@@ -26,10 +26,10 @@ float dt; // time delta from previous step, sfloat loopFreq; // loop frequency, Hzuint16_t channels[16]; // raw rc channelsfloat 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/sVector acc; // accelerometer data, m/s/sQuaternion attitude; // estimated attitude+float motors[4]; // normalized motors thrust in range [-1..1]void setup(){