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 QEI mbed
Revision 4:33798a89f4e4, committed 2015-09-23
- Comitter:
- Rvs94
- Date:
- Wed Sep 23 17:45:20 2015 +0000
- Parent:
- 3:b8f8ecd174d8
- Commit message:
- Motor met encoder
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Sep 23 12:30:19 2015 +0000
+++ b/main.cpp Wed Sep 23 17:45:20 2015 +0000
@@ -28,6 +28,7 @@
Aantal_pulses = Encoder.getPulses();
Aantal_Degs = Aantal_pulses*360/31/131;
pc.printf("Whileloop1: Pulses is: %f, Degs: %f\n", Aantal_pulses,Aantal_Degs);
+ wait(0.1f);
}
while(Aantal_Degs > Grens2)
{
@@ -36,6 +37,7 @@
Aantal_pulses = Encoder.getPulses();
Aantal_Degs = Aantal_pulses*360/31/131;
pc.printf("Whileloop2: Pulses is: %f, Degs: %f\n", Aantal_pulses,Aantal_Degs);
+ wait(0.1f);
}
}
}
\ No newline at end of file