99 [0.0 , 1.68e-5 , 0.0 ],
1010 [0.0 , 0.0 , 2.98e-5 ]
1111]
12- rpm2thrust = [0.0 , 0.0 , 3.16e-10 ] # TODO
13- rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO
12+ rpm2thrust = [0.0 , 0.0 , 3.16e-10 ] # TODO, Index is order
13+ rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO, Index is order
1414# TODO: This is an arbitrary number that leads to a working simulation. It MUST be fitted and
1515# updated as soon as possible.
1616thrust_tau = 0.03 # TODO value? TODO rename to rotor_tau
1717mixing_matrix = [
18- [-1.0 , -1.0 , 1.0 , 1.0 ],
18+ [-1.0 , -1.0 , 1.0 , 1.0 ],
1919 [-1.0 , 1.0 , 1.0 , -1.0 ],
20- [-1.0 , 1.0 , -1.0 , 1.0 ]
20+ [-1.0 , 1.0 , -1.0 , 1.0 ]
2121]
22+ # The following parameters are for the platform, but are maybe not actually used by the models. However,
23+ # we still keep them here in one place, since some other things (sim, estimator, firmware) might need them.
24+ pwm_min = 20000
25+ pwm_max = 65535
26+ thrust_min = 0.02 # in N per motor
27+ thrust_max = 0.1125 # in N per motor
28+ vmotor_min = 1.003506695043662 # in V
29+ vmotor_max = 2.903351097106251 # in V
30+ vmotor2thrust = [-0.014830744918356092 , 0.04724465241828281 , -0.01847364358025878 , 0.005960923942142 ] # Index is order
31+ vmotor2torque = [-0.014830744918356092 , 0.04724465241828281 , -0.01847364358025878 , 0.005960923942142 ] # TODO, Index is order
32+ vmotor2rpm = [2828.6593993157803 , 6686.5508078905705 ] # Index is order
33+ prop_radius = 23.55e-3 # TODO check
34+ prop_inertia = 34.52e-9 # TODO seems off
2235
2336
2437[cf2x_P250 ]
@@ -31,33 +44,59 @@ J = [
3144 [0.0 , 1.4e-5 , 0.0 ],
3245 [0.0 , 0.0 , 2.17e-5 ]
3346]
34- rpm2thrust = [0.0 , 0.0 , 5.792654323957372e-10 ] # TODO
35- rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO
36- thrust_tau = 7.2333515424212695 # TODO value? TODO rename to rotor_tau
47+ rpm2thrust = [0.0 , 0.0 , 5.792654323957372e-10 ] # TODO, Index is order
48+ rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO, Index is order
49+ thrust_tau = 0.138 # TODO value? TODO rename to rotor_tau
3750mixing_matrix = [
38- [-1.0 , -1.0 , 1.0 , 1.0 ],
51+ [-1.0 , -1.0 , 1.0 , 1.0 ],
3952 [-1.0 , 1.0 , 1.0 , -1.0 ],
40- [-1.0 , 1.0 , -1.0 , 1.0 ]
53+ [-1.0 , 1.0 , -1.0 , 1.0 ]
4154]
55+ # The following parameters are for the platform, but are maybe not actually used by the models. However,
56+ # we still keep them here in one place, since some other things (sim, estimator, firmware) might need them.
57+ pwm_min = 20000
58+ pwm_max = 65535
59+ thrust_min = 0.02 # in N per motor
60+ thrust_max = 0.1125 # in N per motor
61+ vmotor_min = 0.9857578735524497 # in V
62+ vmotor_max = 2.9966889966322077 # in V
63+ vmotor2thrust = [-0.02427920377129026 , 0.06433042290821364 , -0.026401054210489865 , 0.006731877887386432 ] # Index is order
64+ vmotor2torque = [-0.02427920377129026 , 0.06433042290821364 , -0.026401054210489865 , 0.006731877887386432 ] # TODO, Index is order
65+ vmotor2rpm = [4741.994550959416 , 7472.9374014021605 ] # Index is order
66+ prop_radius = 23.4e-3 # TODO check
67+ prop_inertia = 26.97e-9
4268
4369
4470[cf2x_T350 ]
4571gravity_vec = [0.0 , 0.0 , -9.81 ]
46- mass = 0.03454
72+ mass = 0.03454 # TODO
4773L = 0.03253
48- J = [
74+ J = [ # TODO
4975 [1.4e-5 , 0.0 , 0.0 ],
5076 [0.0 , 1.4e-5 , 0.0 ],
5177 [0.0 , 0.0 , 2.17e-5 ]
5278]
53- rpm2thrust = [0.0 , 0.0 , 1.068340683985525e-09 ] # TODO
54- rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO
55- thrust_tau = 8.719306881898989 # TODO value? TODO rename to rotor_tau
79+ rpm2thrust = [0.0 , 0.0 , 1.068340683985525e-09 ] # TODO, Index is order
80+ rpm2torque = [0.0 , 0.0 , 7.94e-12 ] # TODO, Index is order
81+ thrust_tau = 0.115 # TODO value? TODO rename to rotor_tau
5682mixing_matrix = [
57- [-1.0 , -1.0 , 1.0 , 1.0 ],
83+ [-1.0 , -1.0 , 1.0 , 1.0 ],
5884 [-1.0 , 1.0 , 1.0 , -1.0 ],
59- [-1.0 , 1.0 , -1.0 , 1.0 ]
85+ [-1.0 , 1.0 , -1.0 , 1.0 ]
6086]
87+ # The following parameters are for the platform, but are maybe not actually used by the models. However,
88+ # we still keep them here in one place, since some other things (sim, estimator, firmware) might need them.
89+ pwm_min = 20000
90+ pwm_max = 65535
91+ thrust_min = 0.03 # in N per motor
92+ thrust_max = 0.1625 # in N per motor
93+ vmotor_min = 0.983691398141343 # in V
94+ vmotor_max = 2.643523702759344 # in V
95+ vmotor2thrust = [-0.03978221591250353 , 0.10979738851226176 , -0.05545304285403245 , 0.016215002062640885 ] # Index is order
96+ vmotor2torque = [-0.03978221591250353 , 0.10979738851226176 , -0.05545304285403245 , 0.016215002062640885 ] # TODO, Index is order
97+ vmotor2rpm = [2738.439005850152 , 8054.983767001532 ] # Index is order
98+ prop_radius = 25.4e-3 # TODO check
99+ prop_inertia = 38.93e-9 # TODO value from B500, currenty unknown
61100
62101
63102[cf21B_500 ]
@@ -69,12 +108,25 @@ J = [
69108 [0.0 , 2.8e-5 , 0.0 ],
70109 [0.0 , 0.0 , 4.9e-5 ]
71110]
72- rpm2thrust = [0.0 , -8.357406697944084e-07 , 4.716909960828207e -10 ]
73- rpm2torque = [0.0 , 2.435151264350409e-09 , 2.424629050055297e-12 ]
111+ rpm2thrust = [0.0 , 2.6713375766104237e-06 , 2.9910560258944037e -10 ] # TODO , Index is order
112+ rpm2torque = [0.0 , 2.435151264350409e-09 , 2.424629050055297e-12 ] # TODO , Index is order
74113thrust2torque = 0.00593893393599368
75114thrust_tau = 0.08 # TODO value? TODO rename to rotor_tau
76115mixing_matrix = [
77116 [-1.0 , -1.0 , 1.0 , 1.0 ],
78117 [-1.0 , 1.0 , 1.0 , -1.0 ],
79118 [-1.0 , 1.0 , -1.0 , 1.0 ]
80- ]
119+ ]
120+ # The following parameters are for the platform, but are maybe not actually used by the models. However,
121+ # we still keep them here in one place, since some other things (sim, estimator, firmware) might need them.
122+ pwm_min = 20000
123+ pwm_max = 65535
124+ thrust_min = 0.03 # in N per motor
125+ thrust_max = 0.18 # in N per motor
126+ vmotor_min = 0.983691398141343 # in V
127+ vmotor_max = 2.643523702759344 # in V
128+ vmotor2thrust = [-0.023218159473266192 , 0.057892237383960946 , -0.005372315709548128 , 0.003180315209941464 ] # Index is order
129+ vmotor2torque = [-0.023218159473266192 , 0.057892237383960946 , -0.005372315709548128 , 0.003180315209941464 ] # TODO, Index is order
130+ vmotor2rpm = [4304.90684659941 , 3948.957007115487 ] # Index is order
131+ prop_radius = 27.5e-3 # TODO check
132+ prop_inertia = 38.93e-9
0 commit comments