setMotorState automatically goes through necessary states