David Salmon
/
ES_CW2_Starter_MDMA
ES2017 coursework 2
Fork of ES_CW2_Starter by
Diff: main.cpp
- Revision:
- 1:184cb0870c04
- Parent:
- 0:de4320f74764
- Child:
- 2:4e88faab6988
diff -r de4320f74764 -r 184cb0870c04 main.cpp --- a/main.cpp Fri Feb 17 22:47:01 2017 +0000 +++ b/main.cpp Mon Feb 27 10:25:06 2017 +0000 @@ -93,7 +93,6 @@ //Main int main() { //Initialise the serial port - serialThread.start(&serialOut); Serial pc(SERIAL_TX, SERIAL_RX); pc.printf("Hello\n\r"); @@ -101,7 +100,7 @@ motorHome(); //Poll the rotor state and set the motor outputs accordingly to spin the motor - while {1} { + while (1) { motorOut(readRotorState()+leadState); } }