   Bridge.begin();
   Mailbox.begin();
   digitalWrite(13, HIGH);
-    
+
   left_front.begin();
   left_front.stopMotors();
   left_back.begin();


int current_direction = 0;

void process_cmd() {
  String cmd;
  
  Mailbox.readMessage(cmd);
  if (cmd == "left") {
    turn_left();
  } else if (cmd == "right") {
    turn_right();
  } else if (cmd == "forward") {
    go_forward();
  } else if (cmd == "backward") {
    go_backwards();
  }

  //Serial.println(cmd);

}

void left_motor(int dir, int spd) {
     left_front.setMotorDirection(dir);
     left_front.setSpeed(spd);   
     left_back.setMotorDirection(!dir);
     left_back.setSpeed(spd);
}

void right_motor(int dir, int spd) {
     right_front.setMotorDirection(dir);
     right_front.setSpeed(spd);   
     right_back.setMotorDirection(!dir);
     right_back.setSpeed(spd);
}

void turn_left() {

  right_front.stopMotors();
  right_back.begin();
  right_back.stopMotors();

}

#define LEFT 1
