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.
Revision 7:baec885e57db, committed 2015-09-21
- Comitter:
- overkiller
- Date:
- Mon Sep 21 11:04:27 2015 +0000
- Parent:
- 6:9eb153e1d472
- Commit message:
- 1st public commit
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Aug 15 11:47:53 2015 +0000
+++ b/main.cpp Mon Sep 21 11:04:27 2015 +0000
@@ -21,25 +21,28 @@
}
int main()
{
- if(initDrivingUnit(1) == 0)
- {
- pc.printf("Ready to accept commands.\n\r Netrunner will start moving in 1 second");
- displayPrompt(&pc);
- }
- wait(1);
+ // if(initDrivingUnit(1) == 0)
+// {
+// pc.printf("Ready to accept commands.\n\r Netrunner will start moving in 1 second");
+// displayPrompt(&pc);
+// }
+// wait(1);
while (true)
{
- checkEnableButtonState();
+ // checkEnableButtonState();
// displayMessage("clicks: %f", &pc, buttonClicks);
- int action = getMenuInput(&pc);
+ // int action = getMenuInput(&pc);
actualDistance = getDistance(0);
- if(actualDistance <= 10)
- {
- resetEngines();
- }else
- {
- forward();
- }
- applyStates();
+ pc.printf("test\n");
+ pc.printf("%d", actualDistance);
+ wait(1);
+ // if(actualDistance <= 10)
+// {
+// resetEngines();
+// }else
+// {
+// forward();
+// }
+ // applyStates();
}
}
\ No newline at end of file