2.74 Nucleo Code

Dependencies:   ExperimentServer QEI_pmw MotorShield

Dependents:   Position_ctrl

Revision:
11:4eb579687dda
Parent:
10:a40d180c305c
Child:
12:84a6dcb60422
diff -r a40d180c305c -r 4eb579687dda main.cpp
--- a/main.cpp	Wed Aug 26 02:44:03 2020 +0000
+++ b/main.cpp	Wed Aug 26 02:49:40 2020 +0000
@@ -48,7 +48,7 @@
             encoderC.reset();
             encoderD.reset();
 
-            motors.motorAWrite(0, 0); //turn motor A off
+            motors.motorAWrite(0, 0); //turn motor A off, motors.motorAWrite(DUTY CYCLE, DIRECTION), DIRECTION = 0 is forward 
 
             // Run experiment
             while( t.read() < 2 ) {