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:
co-authored by
Claude Opus 4.8
Peter Feerick
parent
44b98d5bfd
commit
640fc189e7
+18
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user