Repository navigation
nav: every sim_world and nav_plant key's description says what it does, which way to move it, and its default - #823
Merged
Merged
Conversation
…s, which way to move it, and its default The comments describe_state_keys writes onto the state tree are what a UI shows as a tooltip (cvcdbg's demo3 Tuning panel shows them under dbg.world). Each now says what the key controls in plain words, what raising it does, what special values mean, and the struct's default where it is fixed. Internal references are gone. nav.vehicle.k_steer's unit is rad: it is added to the steer angle.
transfix
force-pushed
the
docs/nav-key-tooltips
branch
from
October 27, 2026 00:08
d74e751 to
b65929a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The comments
describe_state_keyswrites onto the state tree are what a UI shows as tooltips. For example, cvcdbg's demo3 Tuning panel (CVC-DBG/cvcdbg#239) shows them underdbg.world. Many assumed the reader knew the code: carrots, H4,advance(), doc numbers. Few said which way to move a key or what its default is.What
Every description in
sim_world_binding.cppandnav_plant.cppis rewritten: 84 sim_world keys, plus 40 nav_plant keys covering the plant, the drift bins and the per-vehicle telemetry. Each one says:Some lengths and speeds have defaults stored in nav's normalized units (
reach_tol,vmax,a_max,wheelbaseand others). Those keep no default in the text, since one in normalized units is no use to someone reading metres.One unit is corrected:
nav.vehicle.k_steerisrad, not1, because it is added to the steer angle (drive.cpp).Keys, access values, other units, ranges and order are unchanged, checked by script against master.
Checked
nav_binding_test's non-empty-comment check holds: every description is non-empty.Found while writing (not changed here)
nav.sep_gainis a carrot shift in nav's normalized units.pulldoesn't convert it to metres the way it convertssep_radius, so its effect depends onsettings.scale.rrandd_hatdefault to 0, below their recommended minimums.wheelbasedefaults to 0.035 at a scale of 1, below its 0.2 m minimum. These ranges only make sense once an app sets a real scale.terrain.block_infeasiblegoing from 1 to 0 frees the cells only at the next sensing rebuild, and never whilefreeze_senseis 1.nav.vehicleknobs (wheelbase, vmax, a_max, a_lat_max, body_rr, body_gain, nsub) andnav.min_gapare overridden or ignored each tick. The descriptions say so where it matters.