     esc.update(motorPin_BR, throttleMax);
     esc.update(motorPin_BL, throttleMax);
     delay(3000);
-    esc.update(motorPin_FL, 0);
-    esc.update(motorPin_FR, 0);
-    esc.update(motorPin_BR, 0);
-    esc.update(motorPin_BL, 0);
-}
+    motor_off();
+}

}

void motor_off() {
    esc.update(motorPin_FL, 0);
    esc.update(motorPin_FR, 0);
    esc.update(motorPin_BR, 0);

// motor power output
long power_FL, power_FR, power_BR, power_BL;

// linear throttle-thrust correction
CurveRemap tt;
/* // unchanged set
#define FLTTLENGTH 2
unsigned short FL_tt_x[FLTTLENGTH] = {0,65535};
unsigned short FL_tt_y[FLTTLENGTH] = {0,65535};
#define FRTTLENGTH 2
unsigned short FR_tt_x[FRTTLENGTH] = {0,65535};
unsigned short FR_tt_y[FRTTLENGTH] = {0,65535};
#define BRTTLENGTH 2
unsigned short BR_tt_x[BRTTLENGTH] = {0,65535};
unsigned short BR_tt_y[BRTTLENGTH] = {0,65535};
#define BLTTLENGTH 2
unsigned short BL_tt_x[BLTTLENGTH] = {0,65535};
unsigned short BL_tt_y[BLTTLENGTH] = {0,65535};
*/
/* // mapped set
#define FLTTLENGTH 14
unsigned short FL_tt_x[FLTTLENGTH] = {0,1843,25384,25465,26711,32691,37411,44993,45244,47404,53389,60687,62966,65535};
unsigned short FL_tt_y[FLTTLENGTH] = {3359,4022,29892,30626,31276,37814,41815,47131,47705,48586,52278,56283,58021,59281};
