feat: allow IMU inversion (#7505)

This commit is contained in:
3djc
2026-07-04 18:33:29 +10:00
committed by GitHub
parent c070ddda4b
commit 057883da83
20 changed files with 124 additions and 3 deletions
+9
View File
@@ -29,6 +29,15 @@
#define IMU_OFFSET_MIN -30
#define IMU_OFFSET_MAX 10
#define IMU_AXIS_X 0
#define IMU_AXIS_Y 1
// User-selectable IMU axis inversion, stored verbatim and defaulting to off.
// The fixed hardware mounting correction (IMU_INVERT_X/Y in the target hal.h) is
// applied on top of this internally, so the user setting is independent of it.
bool getImuInversion(uint8_t axis);
void setImuInversion(uint8_t axis, bool value);
void gyroStart(imu_read_fn fn);
void gyroWakeup();
void gyroSetIMU_X(int16_t offset, int16_t range);