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: ExperimentServer QEI_pmw MotorShield
Revision 19:d58bf34141e9, committed 2020-09-26
- Comitter:
- sangbae
- Date:
- Sat Sep 26 00:17:32 2020 +0000
- Parent:
- 18:54195aa5e534
- Child:
- 20:4c172a0737c6
- Commit message:
- Minor update with comments
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Sep 25 18:30:00 2020 +0000
+++ b/main.cpp Sat Sep 26 00:17:32 2020 +0000
@@ -33,7 +33,7 @@
MotorShield motorShield(12000); //initialize the motor shield with a period of 12000 clock ticks or ~20kHZ
-void current_control()
+void current_control() //Current control function
{
float error = 0;
velocity = encoderA.getVelocity()*(6.2831/1200.0);