 void motor_turn_deg(Motor* motor, int deg, Turning_Direction dir)
 {
   int goal = motor->deg + (deg * dir);
- 
+
   motor_turn(motor, dir);
 
   switch (motor->dir) {

Motor motor1, motor2, motor3;

void setup() {
  #ifdef KILLALL
  exit(0);
  #endif
  
  motor1.pin = MOTOR_1_PIN;
  motor2.pin = MOTOR_2_PIN;
  //motor3.pin = MOTOR_3_PIN;

  // put your main code here, to run repeatedly:
}

/*****************************
   COMPONENT TESTING METHODS
 *****************************/

void component_test_motor_coast(Motor* motor) {
  for (int i = 0; i < 20; i++) {
    motor->deg = 0;
    motor_turn_deg(motor, 360, COUNTERCLOCKWISE);
    if (motor->deg < 360) {     // In case it happens that the loop breaks out before 360 degrees
      Serial.println("ERROR");  // thrown an error, because that is not supposed to happen.
      exit(0);                  // The error should be fixed, but cant be sure yet.
    }

    delay(1000);
    Serial.println(motor->deg); // Value used for component testing.
    delay(500);                 // Should be 360 + coast degrees for the motor.
  }
}
