File tree Expand file tree Collapse file tree 15 files changed +27
-27
lines changed
hardware_specific_examples
encoder/bluepill_position_control
magnetic_sensor/bluepill_position_control
DRV8305_driver/motor_full_control_serial_examples/encoder/full_control_serial
encoder/esp32_position_control
magnetic_sensor/esp32_position_control
HMBGC_example/position_control
hall_sensor/angle_control
magnetic_sensor/angle_control
magnetic_sensor/velocity_control
motor_commands_serial_examples
encoder/full_control_serial
hall_sensor/full_control_serial
magnetic_sensor/full_control_serial Expand file tree Collapse file tree 15 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ void setup() {
45
45
motor.PI_velocity .P = 0.2 ;
46
46
motor.PI_velocity .I = 20 ;
47
47
// default voltage_power_supply
48
- motor.PI_velocity . voltage_limit = 6 ;
48
+ motor.voltage_limit = 6 ;
49
49
// jerk control using voltage voltage ramp
50
50
// default value is 300 volts per sec ~ 0.3V per millisecond
51
51
motor.PI_velocity .voltage_ramp = 1000 ;
@@ -56,7 +56,7 @@ void setup() {
56
56
// angle P controller
57
57
motor.P_angle .P = 20 ;
58
58
// maximal velocity of the position control
59
- motor.P_angle . velocity_limit = 4 ;
59
+ motor.velocity_limit = 4 ;
60
60
61
61
62
62
// use monitoring with serial
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ void setup() {
46
46
motor.PI_velocity .P = 0.2 ;
47
47
motor.PI_velocity .I = 20 ;
48
48
// maximal voltage to be set to the motor
49
- motor.PI_velocity . voltage_limit = 6 ;
49
+ motor.voltage_limit = 6 ;
50
50
51
51
// velocity low pass filtering time constant
52
52
// the lower the less filtered
@@ -55,7 +55,7 @@ void setup() {
55
55
// angle P controller
56
56
motor.P_angle .P = 20 ;
57
57
// maximal velocity of the position control
58
- motor.P_angle . velocity_limit = 40 ;
58
+ motor.velocity_limit = 40 ;
59
59
60
60
// use monitoring with serial
61
61
Serial.begin (115200 );
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ void setup() {
67
67
motor.PI_velocity .P = 0.2 ;
68
68
motor.PI_velocity .I = 20 ;
69
69
// default voltage_power_supply
70
- motor.PI_velocity . voltage_limit = 12 ;
70
+ motor.voltage_limit = 12 ;
71
71
72
72
// velocity low pass filtering time constant
73
73
motor.LPF_velocity .Tf = 0.01 ;
74
74
75
75
// angle loop controller
76
76
motor.P_angle .P = 20 ;
77
77
// angle loop velocity limit
78
- motor.P_angle . velocity_limit = 50 ;
78
+ motor.velocity_limit = 50 ;
79
79
80
80
// use monitoring with serial for motor init
81
81
// monitoring port
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void setup() {
41
41
motor.PI_velocity .P = 0.2 ;
42
42
motor.PI_velocity .I = 20 ;
43
43
// default voltage_power_supply
44
- motor.PI_velocity . voltage_limit = 6 ;
44
+ motor.voltage_limit = 6 ;
45
45
// jerk control using voltage voltage ramp
46
46
// default value is 300 volts per sec ~ 0.3V per millisecond
47
47
motor.PI_velocity .voltage_ramp = 1000 ;
@@ -52,7 +52,7 @@ void setup() {
52
52
// angle P controller
53
53
motor.P_angle .P = 20 ;
54
54
// maximal velocity of the position control
55
- motor.P_angle . velocity_limit = 4 ;
55
+ motor.velocity_limit = 4 ;
56
56
57
57
58
58
// use monitoring with serial
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ void setup() {
45
45
motor.PI_velocity .P = 0.2 ;
46
46
motor.PI_velocity .I = 20 ;
47
47
// maximal voltage to be set to the motor
48
- motor.PI_velocity . voltage_limit = 6 ;
48
+ motor.voltage_limit = 6 ;
49
49
50
50
// velocity low pass filtering time constant
51
51
// the lower the less filtered
@@ -54,7 +54,7 @@ void setup() {
54
54
// angle P controller
55
55
motor.P_angle .P = 20 ;
56
56
// maximal velocity of the position control
57
- motor.P_angle . velocity_limit = 40 ;
57
+ motor.velocity_limit = 40 ;
58
58
59
59
// use monitoring with serial
60
60
Serial.begin (115200 );
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ void setup() {
59
59
motor.PI_velocity .P = 0.2 ;
60
60
motor.PI_velocity .I = 20 ;
61
61
// default voltage_power_supply
62
- motor.PI_velocity . voltage_limit = 6 ;
62
+ motor.voltage_limit = 6 ;
63
63
// jerk control using voltage voltage ramp
64
64
// default value is 300 volts per sec ~ 0.3V per millisecond
65
65
motor.PI_velocity .voltage_ramp = 1000 ;
@@ -70,7 +70,7 @@ void setup() {
70
70
// angle P controller
71
71
motor.P_angle .P = 20 ;
72
72
// maximal velocity of the position control
73
- motor.P_angle . velocity_limit = 4 ;
73
+ motor.velocity_limit = 4 ;
74
74
75
75
76
76
// use monitoring with serial
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ void setup() {
70
70
motor.PI_velocity .P = 0.2 ;
71
71
motor.PI_velocity .I = 20 ;
72
72
// default voltage_power_supply
73
- motor.PI_velocity . voltage_limit = 6 ;
73
+ motor.voltage_limit = 6 ;
74
74
// jerk control using voltage voltage ramp
75
75
// default value is 300 volts per sec ~ 0.3V per millisecond
76
76
motor.PI_velocity .voltage_ramp = 1000 ;
@@ -81,7 +81,7 @@ void setup() {
81
81
// angle P controller
82
82
motor.P_angle .P = 20 ;
83
83
// maximal velocity of the position control
84
- motor.P_angle . velocity_limit = 4 ;
84
+ motor.velocity_limit = 4 ;
85
85
86
86
87
87
// use monitoring with serial
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ void setup() {
63
63
motor.PI_velocity .P = 0.2 ;
64
64
motor.PI_velocity .I = 2 ;
65
65
// default voltage_power_supply
66
- motor.PI_velocity . voltage_limit = 6 ;
66
+ motor.voltage_limit = 6 ;
67
67
// jerk control using voltage voltage ramp
68
68
// default value is 300 volts per sec ~ 0.3V per millisecond
69
69
motor.PI_velocity .voltage_ramp = 1000 ;
@@ -74,7 +74,7 @@ void setup() {
74
74
// angle P controller
75
75
motor.P_angle .P = 20 ;
76
76
// maximal velocity of the position control
77
- motor.P_angle . velocity_limit = 4 ;
77
+ motor.velocity_limit = 4 ;
78
78
79
79
80
80
// use monitoring with serial
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ void setup() {
43
43
motor.PI_velocity .P = 0.2 ;
44
44
motor.PI_velocity .I = 20 ;
45
45
// maximal voltage to be set to the motor
46
- motor.PI_velocity . voltage_limit = 6 ;
46
+ motor.voltage_limit = 6 ;
47
47
48
48
// velocity low pass filtering time constant
49
49
// the lower the less filtered
@@ -52,7 +52,7 @@ void setup() {
52
52
// angle P controller
53
53
motor.P_angle .P = 20 ;
54
54
// maximal velocity of the position control
55
- motor.P_angle . velocity_limit = 20 ;
55
+ motor.velocity_limit = 20 ;
56
56
57
57
// use monitoring with serial
58
58
Serial.begin (115200 );
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ void setup() {
71
71
motor.PI_velocity .P = 0.2 ;
72
72
motor.PI_velocity .I = 20 ;
73
73
// default voltage_power_supply
74
- motor.PI_velocity . voltage_limit = 6 ;
74
+ motor.voltage_limit = 6 ;
75
75
// jerk control using voltage voltage ramp
76
76
// default value is 300 volts per sec ~ 0.3V per millisecond
77
77
motor.PI_velocity .voltage_ramp = 1000 ;
You can’t perform that action at this time.
0 commit comments