File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
RoboHeartBalanceBotContol
RoboHeartPIDFittingExample Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 24
24
RoboHeart heart = RoboHeart(Serial);
25
25
26
26
// PID controller parameters.
27
- #define Kp 20
28
- #define Kd 0
29
- #define Ki 40
27
+ #define Kp 7
28
+ #define Ki 2
29
+ #define Kd 0.01
30
30
31
31
#define CONTROL_TICK_PERIOD_US 100.0
32
32
@@ -35,7 +35,7 @@ RoboHeart heart = RoboHeart(Serial);
35
35
#define DC_CONTROL_PRESCALER 15 // Control ticks passing before DC Motor Control
36
36
#define STATISTICS_PRESCALER \
37
37
DC_CONTROL_PRESCALER * \
38
- 4 // Control ticks passing before all the debug printing is performed
38
+ 2 // Control ticks passing before all the debug printing is performed
39
39
40
40
// Motor control parameters
41
41
float prevAngleDeg = 0 ; // Store previos angle
Original file line number Diff line number Diff line change 28
28
RoboHeart heart = RoboHeart(Serial);
29
29
30
30
// PID controller parameters.
31
- #define Kp 20
32
- #define Kd 0
33
- #define Ki 40
31
+ #define Kp 7
32
+ #define Ki 2
33
+ #define Kd 0.01
34
34
35
35
#define CONTROL_TICK_PERIOD_US 100.0 // Control tick period in micro-seconds
36
36
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ int Ki = 0;
31
31
#define DC_CONTROL_PRESCALER 15 // Control ticks passing before DC Motor Control
32
32
#define STATISTICS_PRESCALER \
33
33
DC_CONTROL_PRESCALER * \
34
- 4 // Control ticks passing before all the debug printing is performed
34
+ 2 // Control ticks passing before all the debug printing is performed
35
35
36
36
// Motor control parameters
37
37
float prevAngleDeg = 0 ; // Store previos angle
Original file line number Diff line number Diff line change 1
1
name =RoboHeart
2
- version =2.1.4
2
+ version =2.1.5
3
3
author =Augmented Robotics
4
4
maintainer =Augmented Robotics <info@augmented-robotics.com>
5
5
sentence =Arduino library for the RoboHeart
You can’t perform that action at this time.
0 commit comments