Remove RC_CHANNELS macro

This commit is contained in:
Oleg Kalachev
2025-02-28 22:19:52 +03:00
parent 03c6576b72
commit d60968ea25
4 changed files with 10 additions and 12 deletions

View File

@@ -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;

View File

@@ -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));