 volatile bool accDataReady = false;
 
 float lastAccValue = 0.0;
-int lastAccTime = 0;
+unsigned long lastAccTime = 0;
 float xVelocity = 0.0;
 
 // declarations
 void setupBluetooth();
 bool setupAccelerometer();
+void calibrateZeroVel();
 void setDataReady() {accDataReady = true;}
 float trapezoidalRule(float fa, float fb, int dt);
+//void sendBar(float val, float maxVal);
 
 
 void setup() {

    mma.setLowNoiseMode(true);
    mma.setPowerMode(MMA_HIGH_RESOLUTION);

    // data ready interrupt
    mma.setInterruptsEnabled(MMA_DATA_READY);
    // all defaults to INT2

//
//}

//sendBar(float val, float maxVal) {
//    
//    for (int i; i < )
//    Bluetooth.println();
//}

