Project BioRobotics Group 19
Dependencies: FastPWM HIDScope MODSERIAL QEI biquadFilter mbed
Diff: main.cpp
- Revision:
- 17:f8dd5b8e4b52
- Parent:
- 16:2cf8c2705936
- Child:
- 18:2b6f41f39a7f
diff -r 2cf8c2705936 -r f8dd5b8e4b52 main.cpp --- a/main.cpp Thu Nov 02 13:47:48 2017 +0000 +++ b/main.cpp Thu Nov 02 14:03:10 2017 +0000 @@ -50,7 +50,7 @@ // MOTOR 1 volatile double position1; // Position of motor 1 [rad] -volatile double reference1 = 0; // Desired rotation of motor 1 [rad] +volatile double reference1 = -5; // Desired rotation of motor 1 [rad] const double motor1Max = 0; // Maximum rotation of motor 1 [rad] const double motor1Min = 2*pi*-40/360; // Minimum rotation of motor 1 [rad] // Controller gains