 }
 
 void loop(){
+  while(Serial.available()>0){
+    receive_info();
+    }
   flipper = !flipper;
   if (flipper) {digitalWrite(test, HIGH);}
   else {digitalWrite(test, LOW);} 

  pinMode(test, OUTPUT);
  Serial.begin(9600);
}
void motorControl(int pwm1, int pwm2, int dir1, int dir2) {
  int p1, p2;
  if (pwm1 >= 255) {p1 = 255;}

bool flipper = false;
int Kp = 3;

// Infomation from glove
enum state {idle,forward_drive, backup, left_turn,right_turn};
state gesture_state = idle;
uint8_t turning_speed;
bool should_catapult;



void setup(){
  Wire.begin();
  mpu.initialize();
