Skip to content

Commit 18eb419

Browse files
committed
Synchronize default yaw params in symbolic model.
1 parent e20a508 commit 18eb419

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

crazyflow/sim/physics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"acc": np.array([20.907574256269616, 3.653687545690674]),
1616
"roll_acc": np.array([-130.3, -16.33, 119.3]),
1717
"pitch_acc": np.array([-99.94, -13.3, 84.73]),
18-
"yaw_acc": np.array([-60.0, -10.0, 120.0]),
18+
"yaw_acc": np.array([-60.0, -10.0, 140.0]),
1919
}
2020

2121

crazyflow/sim/sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def render(
156156
mode: str | None = "human",
157157
world: int = 0,
158158
default_cam_config: dict | None = None,
159-
width: int = 1280,
160-
height: int = 720,
159+
width: int = 1920,
160+
height: int = 1080,
161161
) -> NDArray | None:
162162
if self.viewer is None:
163163
self.mj_model.vis.global_.offwidth = width

crazyflow/sim/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def symbolic_attitude(dt: float, params: dict | None = None) -> SymbolicModel:
194194
# system matrix ill-conditioned for control methods like LQR. Therefore, we introduce a small
195195
# spring-like term to the yaw dynamics that leads to a non-singular system matrix.
196196
# TODO: identify proper parameters for yaw_rate from real data.
197-
ya, yb, yc = params.get("ya", -0.01), params.get("yb", 0), params.get("yc", 0)
197+
ya, yb, yc = params.get("ya", -60.0), params.get("yb", -10.0), params.get("yc", 140.0)
198198

199199
# Define dynamics equations.
200200
X_dot = cs.vertcat(

0 commit comments

Comments
 (0)