File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ def surrogate_identified_collective_wrench(
61
61
acc = thrust * k1 + drift * k2
62
62
rpy = rot .as_euler ("xyz" )
63
63
k1 , k2 , k3 = SYS_ID_PARAMS ["roll_acc" ]
64
- roll_rate_deriv = k1 * rpy [0 ] + k2 * rpy_rates_local [0 ] + k3 * attitude [1 ]
64
+ roll_rate_deriv = k1 * rpy [0 ] + k2 * rpy_rates_local [0 ] + k3 * attitude [0 ]
65
65
k1 , k2 , k3 = SYS_ID_PARAMS ["pitch_acc" ]
66
- pitch_rate_deriv = k1 * rpy [1 ] + k2 * rpy_rates_local [1 ] + k3 * attitude [2 ]
66
+ pitch_rate_deriv = k1 * rpy [1 ] + k2 * rpy_rates_local [1 ] + k3 * attitude [1 ]
67
67
k1 , k2 , k3 = SYS_ID_PARAMS ["yaw_acc" ]
68
- yaw_rate_deriv = k1 * rpy [2 ] + k2 * rpy_rates_local [2 ] + k3 * attitude [3 ]
68
+ yaw_rate_deriv = k1 * rpy [2 ] + k2 * rpy_rates_local [2 ] + k3 * attitude [2 ]
69
69
rpy_rates_deriv = jnp .array ([roll_rate_deriv , pitch_rate_deriv , yaw_rate_deriv ])
70
70
# The identified dynamics model does not use forces or torques, because we assume no knowledge
71
71
# of the drone's mass and inertia. However, to remain compatible with the physics pipeline, we
You can’t perform that action at this time.
0 commit comments