Skip to content

Commit fda4677

Browse files
committed
Add B500 params
1 parent 6d44683 commit fda4677

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

drone_controllers/mellinger/params.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,34 @@ kw = [20000.0, 20000.0, 12000.0]
2828
ki_m = [0.0, 0.0, 500.0]
2929
kd_omega = [200.0, 200.0, 0.0]
3030
int_err_max = [1.0, 1.0, 1500.0]
31+
32+
[cf2x_B500.core]
33+
mass = 0.034
34+
mass_thrust = 132000
35+
thrust_min = 0.03
36+
thrust_max = 0.18
37+
pwm_min = 20000.0
38+
pwm_max = 65535.0
39+
torque_pwm_max = [32000.0, 32000.0, 32000.0]
40+
L = 0.03253
41+
KF = 3.16e-10 # TODO: Check what the firmware uses
42+
KM = 7.94e-12
43+
mixing_matrix = [
44+
[-1.0, -1.0, 1.0, 1.0],
45+
[-1.0, 1.0, 1.0, -1.0],
46+
[-1.0, 1.0, -1.0, 1.0]
47+
]
48+
gravity_vec = [0.0, 0.0, -9.81]
49+
50+
[cf2x_B500.state2attitude]
51+
kp = [0.4, 0.4, 1.25]
52+
kd = [0.2, 0.2, 0.5]
53+
ki = [0.05, 0.05, 0.05]
54+
int_err_max = [2.0, 2.0, 0.4]
55+
56+
[cf2x_B500.attitude2force_torque]
57+
kR = [70000.0, 70000.0, 60000.0]
58+
kw = [20000.0, 20000.0, 12000.0]
59+
ki_m = [0.0, 0.0, 500.0]
60+
kd_omega = [200.0, 200.0, 0.0]
61+
int_err_max = [1.0, 1.0, 1500.0]

0 commit comments

Comments
 (0)