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: mbed QEI biquadFilter
Diff: controller.cpp
- Revision:
- 2:fc869e45e672
- Parent:
- 0:494acf21d3bc
- Child:
- 7:a80cb6b06320
diff -r 494acf21d3bc -r fc869e45e672 controller.cpp
--- a/controller.cpp Mon Oct 31 13:05:53 2016 +0000
+++ b/controller.cpp Wed Nov 02 08:51:12 2016 +0000
@@ -6,8 +6,7 @@
float dLength = length-initialLength;
if (dLength < 0) {
- velocity = -1 * velocity;
- arm.setVelocity(velocity);
+ arm.setVelocity(-1 * velocity);
while (dLength < 0) {
// Wait
}