Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope mbed MODSERIAL QEI
Diff: Motor.cpp
- Revision:
- 21:59431788a42d
- Parent:
- 16:a2a73d57d556
--- a/Motor.cpp Fri Nov 03 09:08:35 2017 +0000 +++ b/Motor.cpp Mon Nov 06 09:57:21 2017 +0000 @@ -71,7 +71,7 @@ float Motor::Control_angle(float ang){ float control_angle=ang; - double error = Control_PID(angle - control_angle); //set error probably need some kind of PID + double error = angle - control_angle; //set error probably need some kind of PID if(angle - control_angle >= 0)