Nora Vazbyte
/
99Problems-BLEAint1
app critics will say it's money, cash, toes
Diff: source/main.cpp
- Revision:
- 20:7cc04c7e1178
- Parent:
- 18:4cbd88c0a374
--- a/source/main.cpp Wed Nov 21 10:40:41 2018 +0000 +++ b/source/main.cpp Tue Nov 27 15:53:08 2018 +0000 @@ -47,7 +47,7 @@ double oldAcceleration = 0.0; int callback_cycles = 1; // used to be 4 int step; -int run_threshold = 5; // used to be 7 +int run_threshold = 6; // used to be 7 int run_count = 0; int totalsteps = 0; @@ -82,7 +82,7 @@ //printf("calback cycles: " ); //printf("%i\n", callback_cycles); - if (accel < step_threshold && oldAcceleration >= step_threshold && (callback_cycles > 3)) { + if (accel < step_threshold && oldAcceleration >= step_threshold && (callback_cycles > 2)) { if (callback_cycles <= run_threshold) { if (run_count >= 2) { step = 2;