 #define RC_RX_PIN 12
 #define RC_TX_PIN 11
 RoboClaw roboclaw(RC_RX_PIN, RC_TX_PIN);
-
-//
-#define AUX_POWER_PIN 7
-#define MOTOR_POWER_PIN 8
-#define UPS_POWER_PIN 9
 
 // common vars //
 unsigned long lastCommandTime;

  Serial.println("V2");
}

// power control command
// ex: PU - full shutdown (UPS shutdown)
void power()
{
  cmd = buf[1];
  if (cmd == 'A' || cmd == 'a') { digitalWrite(AUX_POWER_PIN, HIGH); delay(50); digitalWrite(AUX_POWER_PIN, LOW); delay(2000); digitalWrite(AUX_POWER_PIN, HIGH); delay(50); digitalWrite(AUX_POWER_PIN, LOW); }
  else
  if (cmd == 'M' || cmd == 'm') { digitalWrite(MOTOR_POWER_PIN, HIGH); delay(50); digitalWrite(MOTOR_POWER_PIN, LOW); }
  else
  if (cmd == 'U' || cmd == 'u') { digitalWrite(UPS_POWER_PIN, HIGH); delay(5500); digitalWrite(UPS_POWER_PIN, LOW); }
}

// 'settings' command
// ex: ST2500 - set timeout to 2500ms. 0 to disable
void settings()
{
  cmd = buf[1];
  // command timeout


void CheckCommandTimeout()
{
  commandTime = millis();
  if (commandTime >= lastCommandTime) commandTime -= lastCommandTime; else lastCommandTime = 0;
  if (commandTime > cmdTimeout) OnDisconnected();
