Testing 1 blue pill
Dependencies: mbed mbed-rtos TextLCD
Diff: Interface/Interface.cpp
- Revision:
- 18:3523660f3930
- Parent:
- 17:68b3fdabe4c5
- Child:
- 21:6d9f6a986647
diff -r 68b3fdabe4c5 -r 3523660f3930 Interface/Interface.cpp --- a/Interface/Interface.cpp Tue Feb 12 10:03:05 2019 +0000 +++ b/Interface/Interface.cpp Tue Feb 12 10:12:08 2019 +0000 @@ -138,7 +138,7 @@ { if (_Twist_Go == true) { - printf("20 Turns\n"); + //printf("20 Turns\n"); //STEPPER_MOTOR_1.Rotate_Steps(22); STEPPER_MOTOR_1.Rotate_Steps(_Turns_Todo);//Rotates for the specified number of steps given _Twist_Go = false; @@ -191,8 +191,8 @@ bool INTERFACE::Get_Anneal_Go(){return _Anneal_Go;} bool INTERFACE::Get_Test_Go(){return _Test_Go;} bool INTERFACE::Get_Select(){return _Select;} -//int INTERFACE::Get_Turns_Done(){_Turns_Done = STEPPER_MOTOR_1.Get_Steps_Done(); return _Turns_Done;} -int INTERFACE::Get_Turns_Done(){return _Turns_Done;} +int INTERFACE::Get_Turns_Done(){_Turns_Done = STEPPER_MOTOR_1.Get_Turns(); return _Turns_Done;} +//int INTERFACE::Get_Turns_Done(){return _Turns_Done;} int INTERFACE::Get_Turns_To_Do(){return _Turns_Todo;} int INTERFACE::Get_Loop(){return _Loop;}