Repository navigation
nav, physics: tick counts carry the unit tick; nav_plant's tree accelerations in m/s^2 - #826
Merged
Merged
Conversation
transfix
force-pushed
the
fix/nav-tree-world-units
branch
from
October 27, 2026 04:04
dbea9f4 to
937590f
Compare
transfix
enabled auto-merge (squash)
October 27, 2026 06:26
…erations in m/s^2 state_key_meta's units gain "tick": a count of the binding's steps, whose length it publishes (nav.settings.dt). nav.sense_every and nav.tick use it, so a UI can show the time they stand for. nav_plant's state-tree keys in g are now m/s^2 keys like every other acceleration there: plan.lateral_mps2 (was plan.lateral_g), settings.drift_bins_mps2, the drift bins' lo_mps2 / hi_mps2 and each vehicle's drift.lateral_mps2. The C++ options, drift summaries, plant log and Python binding keep g (x 9.80665).
transfix
force-pushed
the
fix/nav-tree-ticks-accel
branch
from
October 27, 2026 06:27
e554946 to
85084a5
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.
Stacked on #824 (base
fix/nav-tree-world-units); I'll retarget it once #824 merges.Why
Following on from #824's world-units pass, two inconsistencies remained in what the state tree shows:
nav.sense_everyand thenav.ticktelemetry, and a sim step's length varies by app.What
The "tick" unit:
cvc::state_key_meta's unit conventions gain"tick", a count of the binding's steps whose length the binding publishes. For sim_world that length isnav.settings.dt.nav.sense_everyandnav.tickuse it, and a UI can show their time; cvcdbg's Tuning panel does.nav_plant's tree keys in m/s² (unit
m/s^2):plan.lateral_mps2plan.lateral_g(range 1..12, default 4.9 = 0.5 g)settings.drift_bins_mps2settings.drift_bins_glo_mps2,hi_mps2lo_g,hi_gdrift.lateral_mps2drift.lateral_gThese are key renames. A tree reader using the old names needs the new ones. Nothing in libcvc or cvcdbg reads them by name, apart from nav_plant_test, which is updated.
What still uses g: nav_plant's C++ options (
lateral_g,drift_bins_g), its drift summaries, the plant log format, the CLI and the Python binding. Changing those would change file formats, so it is left for a separate decision.PHYSICS_API.mdsays so.Checked