Skip to content

Commit 295dd92

Browse files
authored
Clarify comments on yaw dynamics parameters
1 parent 307ddbf commit 295dd92

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

crazyflow/sim/symbolic.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ def symbolic_attitude(dt: float, params: dict | None = None) -> SymbolicModel:
188188
b = params.get("b", 3.653687545690674)
189189
ra, rb, rc = params.get("ra", -130.3), params.get("rb", -16.33), params.get("rc", 119.3)
190190
pa, pb, pc = params.get("pa", -99.94), params.get("pb", -13.3), params.get("pc", 84.73)
191-
# The identified model sets params_yaw_rate to [0, 0, 0], because the training data did not
192-
# contain any data with yaw != 0. Therefore, it cannot infer the impact of setting the yaw
193-
# attitude to a non-zero value on the dynamics. However, using a zero vector will make the
194-
# system matrix ill-conditioned for control methods like LQR. Therefore, we introduce a small
195-
# spring-like term to the yaw dynamics that leads to a non-singular system matrix.
196-
# TODO: identify proper parameters for yaw_rate from real data.
191+
# The identified model does not identify yaw and leaves the parameters zero, because the
192+
# training data did not contain any data with yaw != 0. Therefore, it cannot infer the impact
193+
# of setting the yaw attitude to a non-zero value on the dynamics. However, using a zero
194+
# vector will make the system matrix ill-conditioned for control methods like LQR. Therefore,
195+
# we choose parameters that stabilize the yaw dynamics. There are not identified! See
196+
# https://github.com/utiasDSL/crazyflow/pull/41
197197
ya, yb, yc = params.get("ya", -60.0), params.get("yb", -10.0), params.get("yc", 140.0)
198198

199199
# Define dynamics equations.

0 commit comments

Comments
 (0)