mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 13:36:43 +00:00
Remove RC_CHANNELS macro
This commit is contained in:
@@ -10,14 +10,13 @@
|
||||
#include "Arduino.h"
|
||||
#include "wifi.h"
|
||||
|
||||
#define RC_CHANNELS 16
|
||||
#define WIFI_ENABLED 1
|
||||
|
||||
float t = NAN;
|
||||
float dt;
|
||||
float motors[4];
|
||||
int16_t channels[16]; // raw rc channels
|
||||
float controls[RC_CHANNELS];
|
||||
float controls[16];
|
||||
Vector acc;
|
||||
Vector gyro;
|
||||
Vector rates;
|
||||
|
||||
@@ -38,8 +38,8 @@ bool joystickInit() {
|
||||
}
|
||||
|
||||
// apply calibration overrides
|
||||
extern int channelNeutral[RC_CHANNELS];
|
||||
extern int channelMax[RC_CHANNELS];
|
||||
extern int channelNeutral[16];
|
||||
extern int channelMax[16];
|
||||
memcpy(channelNeutral, channelNeutralOverride, sizeof(channelNeutralOverride));
|
||||
memcpy(channelMax, channelMaxOverride, sizeof(channelMaxOverride));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user