 #define LED_PIN 13
 #define RC_RX_PIN 12
 #define RC_TX_PIN 11
-#define SSC_RX_PIN 2
-#define SSC_TX_PIN 3
+#define SSC_RX_PIN 10
+#define SSC_TX_PIN 9
 // power management //
 #define SERVO_PIN 6
-#define AUX_PIN 7
-#define MOTORS_PIN 8
-#define UPS_PIN 9
-#define BATTERY_PIN 10
+#define POWER_PIN 7
+#define MOTOR_PIN 8
 
 // host communication //
 #define MAX_COMMAND 16

{
  if (action)
  {
    pm();
    driveUART(true);
    lastDriveCommandTime = millis();
  }
  else
  {
    driveUART(false);
    pm();
  }
}


void power()
{
  cmd = buf[1];
  if (cmd == 'm') pm();
  else
  if (cmd == 'p') pp();
  else
    nak();
}

void pm()
{ pulsePin(MOTOR_PIN, 20); }

void pp()
{
  pulsePin(POWER_PIN, 20);
  if (driveEnabled) pm();
}

//=======================================

// 'battery voltage' command
// ex: B
// result in mV
void battery()
{
  unsigned long voltage = (unsigned long)14800;
  Serial.write('b');
  Serial.println(voltage);
}

//=======================================

// 'digitalWrite' command
// ex: W031 - set pin 3 HIGH, W100 - set pin 10 LOW
