Use interrupts instead of polling for main loop

This commit is contained in:
Oleg Kalachev 2025-05-05 13:58:23 +03:00
parent 94c2d399b3
commit 965813e8f0

View File

@ -25,6 +25,7 @@ void configureIMU() {
IMU.setGyroRange(IMU.GYRO_RANGE_2000DPS);
IMU.setDLPF(IMU.DLPF_MAX);
IMU.setRate(IMU.RATE_1KHZ_APPROX);
IMU.setupInterrupt();
}
void readIMU() {