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
Revision 2:22159ccbf771, committed 2018-04-22
- Comitter:
- KDrainEE
- Date:
- Sun Apr 22 13:31:48 2018 +0000
- Parent:
- 0:8bf709d3440b
- Commit message:
- moved controller(testing branches)
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 18 14:58:02 2018 +0000
+++ b/main.cpp Sun Apr 22 13:31:48 2018 +0000
@@ -213,6 +213,10 @@
data[4] = gateDrive.read();
data[5] = speed.read();
}
+void cb()
+{
+controller();
+}
int main()
{
@@ -224,7 +228,7 @@
gateDrive.write(Setpoint);
ctrlTimer.start();
- control.attach(&controller, TI);
+ control.attach(&cb, TI);
rightCount = 0;
leftCount = 0;