Skip to content

Commit d7bd281

Browse files
committed
position parameters
1 parent 74983de commit d7bd281

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/definitions/robot_definitions.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ const float MOTOR_RATIO = MOTOR_CPR*MOTOR_GEAR_RATIO;
2525
#define MOTOR_KP_DEFAULT 32.0
2626
#define MOTOR_KI_DEFAULT 450.0
2727
#define MOTOR_KD_DEFAULT 0.0
28-
29-
//30, 450, 0.0
30-
//120,300,1,0
3128
#define MOTOR_CONTROL_PERIOD 0.02
3229

30+
#define POSITION_KP_DEFAULT 1.0
31+
#define POSITION_KI_DEFAULT 0.0
32+
#define POSITION_KD_DEFAULT 0.1
33+
#define POSITION_CONTROL_PERIOD 0.02
34+
#define POSITION_MAX_SPEED 30.0
35+
3336

3437
// Sensor fusioning parameters
3538
#define FROM_MG_TO_G 0.001f

0 commit comments

Comments
 (0)