whenRobotRolled

Utility to use the IMU to detect roll or pitch beyond ROBOT_PITCH_ROLL_THRESHOLD_DEGREES.

Return

this

Parameters

imu

the IMU to use for detection

action

the action to take on a roll/pitch violation