Callum and Adel's changes on 12/02/19
Dependencies: Crypto
Diff: main.cpp
- Revision:
- 11:37801818b10f
- Parent:
- 10:a4b5723b6c9d
- Child:
- 12:41b3112021a3
diff -r a4b5723b6c9d -r 37801818b10f main.cpp --- a/main.cpp Tue Feb 26 12:23:17 2019 +0000 +++ b/main.cpp Mon Mar 04 19:22:33 2019 +0000 @@ -118,9 +118,9 @@ while (1) { intState = readRotorState(); if (intState != intStateOld) { + pc.printf("old:%d \t new:%d \t next:%d \n\r",intStateOld, intState, (intState-orState+lead+6)%6); intStateOld = intState; motorOut((intState-orState+lead+6)%6); //+6 to make sure the remainder is positive - //pc.printf("%d\n\r",intState); } } }