 unsigned short BL_tt_y[BLTTLENGTH] = {3195,3894,24949,26229,26919,28269,40086,44674,45374,46146,55350};
 */
 // timers
-//primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199
 unsigned long elapsed_ms;
 
 unsigned short longPeriod = 500;
 unsigned long lastLongTime = millis();
 
-byte loggerPeriod = 37;
+byte loggerPeriod = 40;
 unsigned long lastloggerTime = millis();
 
 byte midPeriod = 21;

    //print("Compass "); print(lastShortTimeMS); print(" ");print(accel.mx); print(" "); print(accel.y); print(" "); print(accel.z); print("\n");
    gyro.correctXY(accel.x, accel.y);
    //if(freshMag){ gyro.correctZ(accel.z); }
    print("IMU "); print(lastShortTimeMS); print(" "); print(gyro.posX); print(" "); print(gyro.posY); print(" "); print(gyro.posZ); print("\n");
    updateMotor();
  }

  /*elapsed_ms = millis() - lastloggerTime;
  if (elapsed_ms >= loggerPeriod) {
    lastloggerTime = millis();
    if(ctrl.live){
        logger.append_IMU(lastloggerTime, gyro.posX, gyro.posY, gyro.posZ);
        logger.append_PID(lastloggerTime, op_roll, op_pitch, op_yaw);
        //logger.append_MP(lastloggerTime, power_FL, power_FR, power_BR, power_BL);
        //logger.append_RX(lastloggerTime, ctrl.rollf, ctrl.pitchf, ctrl.yawf, ctrl.throttle);
        logger.writeOnFull();
    }
  }*/
}

bool checkRX() {


// throttle-thrust correction
CurveRemap tt;

#define FLTTLENGTH 2
unsigned short FL_tt_x[FLTTLENGTH] = {0,65535};
unsigned short FL_tt_y[FLTTLENGTH] = {3195,65535};
#define FRTTLENGTH 2
unsigned short FR_tt_x[FRTTLENGTH] = {0,65535};
unsigned short FR_tt_y[FRTTLENGTH] = {3195,65535};
#define BRTTLENGTH 2
unsigned short BR_tt_x[BRTTLENGTH] = {0,65535};
unsigned short BR_tt_y[BRTTLENGTH] = {3195,65535};
#define BLTTLENGTH 2
unsigned short BL_tt_x[BLTTLENGTH] = {0,65535};
unsigned short BL_tt_y[BLTTLENGTH] = {3195,65535};
/*
#define FLTTLENGTH 14
unsigned short FL_tt_x[FLTTLENGTH] = {0,1843,25384,25465,26711,32691,37411,44993,45244,47404,53389,60687,62966,65535};
