Skip to content

nav_dyn_4w_test: the dyn4 ext rollout golden gets cases inside the controller's clamps - #798

Merged
transfix merged 1 commit into
masterfrom
test/dyn4-ext-golden-in-clamps
Oct 24, 2026
Merged

transfix merged 1 commit into
masterfrom
test/dyn4-ext-golden-in-clamps

Conversation

@transfix

Copy link
Copy Markdown
Owner

Dyn4ExtRollout.Golden (#780) is the golden that GRL-SNAM's torch twin of dyn4_rollout_ext is held to. All four of its cases saturate the controller:

  • a goal 5 away pins the acceleration at a_max;
  • at speed, the lateral-acceleration cap pins the steering.

So their coefficient gradients are identically zero, on both sides. So is dL/dF_ext wherever the force can't move a pinned command (cases 1 and 3). A twin held to this golden never meets the coefficient path through the four-wheel plant.

This adds two cases inside the clamps. They start slow with the goal 0.6 ahead, as the DiffExtRollout checks do:

case max |dL/dcoef| max |dL/dF_ext|
0-3 (unchanged) 0 0.60 / 0 / 2.74 / 0
4 (hold 1, steers) 0.23 1.18
5 (hold 3, steers) 0.14 1.00

The first four cases' values are unchanged. Regenerated with CVC_DYN4_EXT_GOLDEN_WRITE=1; nav_dyn_4w_test passes 16/16 locally (Windows, cvcpkg prefix).

GRL-SNAM's twin, ext_rollout.dyn4_rollout_ext, is held to the regenerated golden in its own PR.

…ntroller's clamps

Dyn4ExtRollout.Golden's four cases all saturate: a goal 5 away pins the acceleration at a_max, and
at speed the lateral cap pins the steering. So their coefficient gradients are identically zero,
as is dL/dF_ext wherever the force cannot move a pinned command, and a torch twin held to the
golden never meets the coefficient path through the four-wheel plant.

Two cases start slow with the goal 0.6 ahead, as DiffExtRollout's checks do: dL/dcoef up to 0.23
and dL/dF_ext up to 1.2. The first four are unchanged, byte for byte. Regenerated with
CVC_DYN4_EXT_GOLDEN_WRITE=1; nav_dyn_4w_test passes.
@transfix
transfix merged commit c48d5a1 into master Oct 24, 2026
24 checks passed
@transfix
transfix deleted the test/dyn4-ext-golden-in-clamps branch October 29, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant