Assignment 1 compiled
Dependencies: FastPWM MODSERIAL QEI mbed
Fork of gr14_assignment_PES by
Diff: main.cpp
- Revision:
- 1:a602cde74178
- Parent:
- 0:55255afaa7a4
- Child:
- 2:7a8531d95f0b
--- a/main.cpp Mon Oct 15 10:25:05 2018 +0000 +++ b/main.cpp Mon Oct 15 10:35:37 2018 +0000 @@ -59,7 +59,7 @@ if (u <= 0) { motor1_richting = 0; - motor1_pwm.write(-AnalogVoltage1); //write Duty cycle + motor1_pwm.write(-u); //write Duty cycle } if (u >= 0)