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
Diff: WheelControl/Wheel.h
- Revision:
- 13:521d6c6e7042
- Parent:
- 11:78c645fb76cd
--- a/WheelControl/Wheel.h Mon Apr 29 00:57:32 2019 +0000
+++ b/WheelControl/Wheel.h Mon Apr 29 09:40:30 2019 +0000
@@ -60,6 +60,11 @@
return angularVelocity;
}
+ void resetPID()
+ {
+ controller.reset();
+ }
+
//only called once during initialization to calculate max angular velocity
//dir = direction, do opposite for each wheel just so your buggy doesn't move FORWARD but rather rotates
void init(int dir)