File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 18
18
#define WHEEL_DIAMETER_MM 34.0
19
19
20
20
// Motor Control and mechanical parameters
21
- #define CONTROL_LIMIT 4096 // PWM resolution
21
+ #define CONTROL_LIMIT 4095 // PWM resolution
22
22
23
23
#define MOTOR_LIMIT 70.0 // Mechanical RPM limit speed of used motors
24
24
#define MOTOR_CPR 6.0 // Resolution of the encoder
@@ -41,18 +41,18 @@ const float MOTOR_RATIO = MOTOR_CPR*MOTOR_GEAR_RATIO;
41
41
42
42
43
43
// Kinematics control
44
- #define ROTATE_KP_DEFAULT 5 .0
45
- #define ROTATE_KI_DEFAULT 0.0
44
+ #define ROTATE_KP_DEFAULT 4 .0
45
+ #define ROTATE_KI_DEFAULT 0.01
46
46
#define ROTATE_KD_DEFAULT 0.001
47
47
#define ROTATE_CONTROL_PERIOD 0.02
48
- #define ROTATE_MAX_SPEED 45 .0
48
+ #define ROTATE_MAX_SPEED 170 .0
49
49
#define ROTATE_THRESHOLD 1
50
50
51
- #define MOVE_KP_DEFAULT 5 .0
52
- #define MOVE_KI_DEFAULT 0.0
51
+ #define MOVE_KP_DEFAULT 4 .0
52
+ #define MOVE_KI_DEFAULT 0.01
53
53
#define MOVE_KD_DEFAULT 0.001
54
54
#define MOVE_CONTROL_PERIOD 0.02
55
- #define MOVE_MAX_SPEED 45 .0
55
+ #define MOVE_MAX_SPEED 130 .0
56
56
#define MOVE_THRESHOLD 3
57
57
58
58
#define MOVEMENT_DISABLED 0
Original file line number Diff line number Diff line change 19
19
#include " ../definitions/robot_definitions.h"
20
20
#include " pid_controller.h"
21
21
22
- #define CONTROL_LIMIT 4095
22
+ // #define CONTROL_LIMIT 4095
23
23
#define MEM_SIZE 5
24
24
#define CONTROL_MODE_NORMAL 0
25
25
#define CONTROL_MODE_LINEAR 1
You can’t perform that action at this time.
0 commit comments