Mouse code for the MacroRat
Diff: main.cpp
- Revision:
- 18:6a4db94011d3
- Parent:
- 17:f713758f6238
- Child:
- 19:7b66a518b6f8
diff -r f713758f6238 -r 6a4db94011d3 main.cpp --- a/main.cpp Sun May 14 23:07:23 2017 +0000 +++ b/main.cpp Sun May 14 23:18:57 2017 +0000 @@ -24,7 +24,7 @@ const int desiredCountL = 1475; const int oneCellCount = 5400; -const int oneCellCountMomentum = 4600; // one cell count is actually approximately 5400, but this value is considering momentum! +const int oneCellCountMomentum = 4700; // one cell count is actually approximately 5400, but this value is considering momentum! float receiverOneReading = 0.0; float receiverTwoReading = 0.0; @@ -471,11 +471,11 @@ while (1) { moveForwardCellEncoder(1); - wait(0.3); + wait(0.5); handleTurns(); wait_ms(5); moveForwardCellEncoder(1); - wait(0.3); + wait(0.5); handleTurns(); break; // moveForwardOneCellEncoder();