Why can't I read Gyro in an interrupt? IMU.readGyro?
Probably because it uses serial I/O (I2C), which doesn't work within interrupt routines. Read the gyro in the main loop instead.
As a general rule, do not do I/O in an interrupt routine.
Why can't I read Gyro in an interrupt? IMU.readGyro?
Probably because it uses serial I/O (I2C), which doesn't work within interrupt routines. Read the gyro in the main loop instead.
As a general rule, do not do I/O in an interrupt routine.