Modified experiment example for lab 3 of 2.74
Dependencies: ExperimentServer MotorShield QEI_pmw
Diff: main.cpp
- Revision:
- 19:d58bf34141e9
- Parent:
- 18:54195aa5e534
- Child:
- 20:4c172a0737c6
--- 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);