 float lastAccValue = 0.0;
 unsigned long lastAccTime = 0;
 float xVelocity = 0.0;
+#endif
 
 int throttleBluetoothOut = 0;
 

#endif
    return x;
}


// Stop and blink when error occurs

    Bluetooth.print("DCalibrated: ");
    Bluetooth.println(zeroOffset*1000);
}
#endif

float trapezoidalRule(float fa, float fb, int dt) {
    return ((float) dt) * (fa + fb) * 0.5;
