test
Dependencies: Encoder_Nucleo_16_bits
Diff: PID.h
- Revision:
- 7:78cdcb637927
- Parent:
- 5:d01614d14cd1
- Child:
- 8:4553677e8b99
diff -r 1e8c73d85648 -r 78cdcb637927 PID.h --- a/PID.h Tue Jun 05 08:06:30 2018 +0000 +++ b/PID.h Tue Jun 05 12:27:28 2018 +0000 @@ -173,16 +173,13 @@ */ int RobotIsStuck; -protected : +private : + void controlLoop(); Ticker _tick; Nucleo_Encoder_16_bits _Lencoder, _Rencoder; PwmOut _Lpwm, _Rpwm; DigitalOut _LdirA, _LdirB, _RdirA, _RdirB; - -private : - - void controlLoop(); }; #endif //PID_H \ No newline at end of file