Callum and Adel's changes on 12/02/19

Dependencies:   Crypto

Files at this revision

API Documentation at this revision

Comitter:
adehadd
Date:
Mon Mar 04 19:22:33 2019 +0000
Parent:
10:a4b5723b6c9d
Child:
12:41b3112021a3
Commit message:
Added useful debug message for understanding

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
         }
     }
 }