Minor code rearrange

This commit is contained in:
Oleg Kalachev 2023-05-29 18:46:29 +03:00
parent f84d1e95dd
commit 4160b8da07

View File

@ -26,10 +26,10 @@ float dt; // time delta from previous step, s
float loopFreq; // loop frequency, Hz float loopFreq; // loop frequency, Hz
uint16_t channels[16]; // raw rc channels uint16_t channels[16]; // raw rc channels
float controls[RC_CHANNELS]; // normalized controls in range [-1..1] ([0..1] for throttle) 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 rates; // angular rates, rad/s
Vector acc; // accelerometer data, m/s/s Vector acc; // accelerometer data, m/s/s
Quaternion attitude; // estimated attitude Quaternion attitude; // estimated attitude
float motors[4]; // normalized motors thrust in range [-1..1]
void setup() void setup()
{ {