// Set the robot to a default 'clean' state between running macros private void setRobotToDefaultState() { if (mRobot == null) return; mRobot.sendCommand(new AbortMacroCommand()); mRobot.setLed(1.0f, 1.0f, 1.0f); mRobot.enableStabilization(true); mRobot.setBackLedBrightness(0.0f); mRobot.stop(); }