Using HIDScope for P(I)D controller
Dependencies: FastPWM HIDScope MODSERIAL QEI biquadFilter mbed
Fork of PES_tutorial_5 by
Diff: main.cpp
- Revision:
- 5:a1fb2d2fb2d0
- Parent:
- 4:49c5fd62a192
- Child:
- 6:bd73804c8cec
diff -r 49c5fd62a192 -r a1fb2d2fb2d0 main.cpp --- a/main.cpp Mon Oct 15 09:39:06 2018 +0000 +++ b/main.cpp Mon Oct 15 09:42:17 2018 +0000 @@ -9,6 +9,7 @@ FastPWM motor1_pwm(D6); //FastPWM input, PES lecture 2 Ticker MotorInterrupt; pc.baud(115200); + void Motor() { // Aflezen Potentiometers voor PWM @@ -20,7 +21,7 @@ motor1_direction = 1 - motor1_direction; float motor1_velocity = pot1.read() *2.0; - pc.printf("Velocity is %f \n", motor1_velocity); + pc.printf("Velocity is %f \r\n", motor1_velocity); } int main()