   encoder.attach(ENCODER_DIG_PIN);
   encoder.begin(); //start counting
   gyro.attach();
-  gyro.begin(); //start measuring
+  gyro.begin(GYRO_SAMPLING); //start measuring
   razor.attach(&Serial3);
   pinMode(BT_STATE_PIN, INPUT);
   Serial2.begin(9600);


Razorboard razor;

void setup() {
  car.begin();
  frontSonar.attach(FRONT_US_TRIG_PIN, FRONT_US_ECHO_PIN);

        int degrees = input.substring(1).toInt();
        car.setAngle(degrees);
      } else if (input.startsWith("h")) {
        gyro.begin(GYRO_SAMPLING);
      } else {
        Serial2.println(encodedNetstring("Bad input"));
      }
