 radio_t radio_data;
 shift_t shift_data;
 gear_t gear_data;
-cadence_t cadence_data;
+interface_t interface_data;
+target_t target_data;
 
 // function prototypes
 void calc_average();

  target = -1;
  gear = 1;

  for (rpsidx = RPMSIZE - 1; rpsidx >= 0; rpsidx--)
    rps[rpsidx] = 0;
}

void loop() {
  hall_read = digitalRead(HALLPIN);

  // only reads once a second
  if(millis() - oldtime > 1000) {

  }

  // check what state the hall sensor is in and calculate revolutions
  if(hall_read == 1 && switched == 0) {
    mag_count++;
    switched = 1;
  }
  else if(hall_read == 0 && switched == 1) {
    mag_count++;
    switched = 0;
  }
