David Salmon
/
ES_CW2_Starter_MDMA
ES2017 coursework 2
Fork of ES_CW2_Starter by
Diff: main.cpp
- Revision:
- 3:e7133505f542
- Parent:
- 2:4e88faab6988
- Child:
- 4:f8a9ce214db9
--- a/main.cpp Tue Feb 28 14:44:23 2017 +0000 +++ b/main.cpp Thu Mar 02 11:09:45 2017 +0000 @@ -38,7 +38,7 @@ //const int8_t stateMap[] = {0x07,0x01,0x03,0x02,0x05,0x00,0x04,0x07}; //Alternative if phase order of input or drive is reversed //Phase lead to make motor spin -const int8_t lead = -2; //2 for forwards, -2 for backwards +const int8_t lead = 2; //2 for forwards, -2 for backwards //Status LED DigitalOut led1(LED1); @@ -96,7 +96,7 @@ //Main int main() { - int8_t orState = 0; //Rotot offset at motor state 0 + int8_t orState = 0; //Rotor offset at motor state 0 //Initialise the serial port Serial pc(SERIAL_TX, SERIAL_RX);