Gyro-rate rejection only checks gyroRate.compareTo(MAX_ANGULAR_VELOCITY) > 0, which won't reject fast rotation in the negative direction. Use the magnitude/absolute value of the angular velocity when comparing against the max threshold so both spin directions are handled consistently.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Gyro-rate rejection only checks gyroRate.compareTo(MAX_ANGULAR_VELOCITY) > 0, which won't reject fast rotation in the negative direction. Use the magnitude/absolute value of the angular velocity when comparing against the max threshold so both spin directions are handled consistently.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.