Gets flags that indicate the state of the motor.
Supported flags are MotorStateFlags.RUNNING and MotorStateFlags.RAMPING.