We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74983de commit d7bd281Copy full SHA for d7bd281
src/definitions/robot_definitions.h
@@ -25,11 +25,14 @@ const float MOTOR_RATIO = MOTOR_CPR*MOTOR_GEAR_RATIO;
25
#define MOTOR_KP_DEFAULT 32.0
26
#define MOTOR_KI_DEFAULT 450.0
27
#define MOTOR_KD_DEFAULT 0.0
28
-
29
-//30, 450, 0.0
30
-//120,300,1,0
31
#define MOTOR_CONTROL_PERIOD 0.02
32
+#define POSITION_KP_DEFAULT 1.0
+#define POSITION_KI_DEFAULT 0.0
+#define POSITION_KD_DEFAULT 0.1
33
+#define POSITION_CONTROL_PERIOD 0.02
34
+#define POSITION_MAX_SPEED 30.0
35
+
36
37
// Sensor fusioning parameters
38
#define FROM_MG_TO_G 0.001f
0 commit comments