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