mirror of
https://github.com/okalachev/flix.git
synced 2026-02-18 08:02:36 +00:00
Make RC_CHANNELS=16 corresponding the number of SBUS channels
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#define WIFI_ENABLED 1
|
||||
|
||||
#define RC_CHANNELS 6
|
||||
#define RC_CHANNELS 16
|
||||
#define RC_CHANNEL_ROLL 0
|
||||
#define RC_CHANNEL_PITCH 1
|
||||
#define RC_CHANNEL_THROTTLE 2
|
||||
@@ -26,7 +26,7 @@
|
||||
float t = NAN; // current step time, s
|
||||
float dt; // time delta from previous step, s
|
||||
float loopFreq; // loop frequency, Hz
|
||||
int16_t channels[16]; // raw rc channels
|
||||
int16_t channels[RC_CHANNELS]; // raw rc channels
|
||||
float controls[RC_CHANNELS]; // normalized controls in range [-1..1] ([0..1] for throttle)
|
||||
Vector gyro; // gyroscope data
|
||||
Vector acc; // accelerometer data, m/s/s
|
||||
|
||||
Reference in New Issue
Block a user