final

Dependencies:   MatrixMath Matrix ExperimentServer QEI_pmw MotorShield

Files at this revision

API Documentation at this revision

Comitter:
elijahsj
Date:
Thu Aug 27 14:55:58 2020 +0000
Parent:
14:c0aa529968a2
Child:
16:f9ea2b2d410f
Commit message:
documentation

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 26 23:42:18 2020 +0000
+++ b/main.cpp	Thu Aug 27 14:55:58 2020 +0000
@@ -44,8 +44,11 @@
             encoderC.reset();
             encoderD.reset();
 
-            motorShield.motorAWrite(0, 0); //turn motor A off, motorShield.motorAWrite(DUTY CYCLE, DIRECTION), DIRECTION = 0 is forward 
-
+            motorShield.motorAWrite(0, 0); //turn motor A off
+            
+            //use the motor shield as follows:
+            //motorShield.motorAWrite(DUTY CYCLE, DIRECTION), DIRECTION = 0 is forward, DIRECTION =1 is backwards.
+             
             // Run experiment
             while( t.read() < 2 ) {
                 // Perform control loop logic