feat: iFlight Commando 14 support (#7494)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
This commit is contained in:
3djc
2026-07-16 12:30:16 +10:00
committed by GitHub
co-authored by Claude Opus 4.8 Peter Feerick
parent 44b98d5bfd
commit 640fc189e7
65 changed files with 5083 additions and 51 deletions
+18 -2
View File
@@ -184,12 +184,28 @@ void gyroWakeup()
int16_t gyroScaledX()
{
return limit<int16_t>(-RESX, gyroOutputs[0], RESX);
#if defined(IMU_SWAP_TILT_XY)
float v = gyroOutputs[1];
#else
float v = gyroOutputs[0];
#endif
#if defined(IMU_INVERT_TILT_X)
v = -v;
#endif
return limit<int16_t>(-RESX, v, RESX);
}
int16_t gyroScaledY()
{
return limit<int16_t>(-RESX, gyroOutputs[1], RESX);
#if defined(IMU_SWAP_TILT_XY)
float v = gyroOutputs[0];
#else
float v = gyroOutputs[1];
#endif
#if defined(IMU_INVERT_TILT_Y)
v = -v;
#endif
return limit<int16_t>(-RESX, v, RESX);
}
void gyroSetIMU_X(int16_t offset, int16_t range)