My fork
Dependencies: BLE_API mbed-dev-bin nRF51822-bluetooth-mdw
Fork of microbit-dal-bluetooth-mdw by
Diff: inc/drivers/MicroBitAccelerometer.h
- Revision:
- 55:6920de8ba10a
- Parent:
- 42:e2869e0fa366
- Child:
- 56:1311cac15dda
diff -r 77d0b27f4f26 -r 6920de8ba10a inc/drivers/MicroBitAccelerometer.h --- a/inc/drivers/MicroBitAccelerometer.h Wed Jul 13 12:18:33 2016 +0100 +++ b/inc/drivers/MicroBitAccelerometer.h Wed Jul 13 12:18:34 2016 +0100 @@ -97,12 +97,12 @@ #define MICROBIT_ACCELEROMETER_REST_TOLERANCE 200 #define MICROBIT_ACCELEROMETER_TILT_TOLERANCE 200 #define MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE 400 -#define MICROBIT_ACCELEROMETER_SHAKE_TOLERANCE 1000 +#define MICROBIT_ACCELEROMETER_SHAKE_TOLERANCE 500 #define MICROBIT_ACCELEROMETER_3G_TOLERANCE 3072 #define MICROBIT_ACCELEROMETER_6G_TOLERANCE 6144 #define MICROBIT_ACCELEROMETER_8G_TOLERANCE 8192 -#define MICROBIT_ACCELEROMETER_GESTURE_DAMPING 10 -#define MICROBIT_ACCELEROMETER_SHAKE_DAMPING 10 +#define MICROBIT_ACCELEROMETER_GESTURE_DAMPING 5 +#define MICROBIT_ACCELEROMETER_SHAKE_DAMPING 20 #define MICROBIT_ACCELEROMETER_REST_THRESHOLD (MICROBIT_ACCELEROMETER_REST_TOLERANCE * MICROBIT_ACCELEROMETER_REST_TOLERANCE) #define MICROBIT_ACCELEROMETER_FREEFALL_THRESHOLD (MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE * MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE)