The last version programs
Dependencies: mbed TrapezoidControl Pulse QEI
Diff: System/Process/Process.cpp
- Revision:
- 19:96a462583af9
- Parent:
- 18:c694bae76e51
- Child:
- 20:eae8c84f318c
--- a/System/Process/Process.cpp Mon Jul 08 01:55:34 2019 +0000 +++ b/System/Process/Process.cpp Tue Jul 16 06:48:51 2019 +0000 @@ -64,6 +64,7 @@ float tireProRPM[4]; float tireTarRPM[4]; +float tirePWM[4]; #pragma endregion USER-DEFINED_VARIABLES_AND_PROTOTYPE @@ -186,8 +187,11 @@ while(1) { - //LED_DEBUG0 = !LED_DEBUG0; - //LED_DEBUG1 = !LED_DEBUG1; + if(LimitSw::IsPressed(10)) { + LED_DEBUG0 = LED_ON; + } else { + LED_DEBUG0 = LED_OFF; + } //printf("%d\r\n",ECD_0.getPulses()); buzzer.period(1.0/800); @@ -201,11 +205,6 @@ CONTROLLER::Controller::DataReset(); AllActuatorReset(); lock = true; - //buzzer = 1; - //BuzzerTimer.attach(BuzzerTimer_func, 0.5); - //buzzer = 1; - //BuzzerTimer.attach(&BuzzerTimer_func, 1.2); - //BuzzerTimer.attach(BuzzerTimer_func, 1); } else #endif