OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
learn_gears Namespace Reference

Learn forward-gear RPM/speed ratios from live OpenRoadCode telemetry. More...

Functions

list[list[float]] _read_profile_groups (Path path, int gear_count)
 Load existing learned centers so a single gear can be replaced.
list[float] _capture_guided_gear (ZeroMqSubscriber subscriber, argparse.Namespace args, int gear)
 Capture one gear, rejecting a noisy sample set before advancing.

Detailed Description

Learn forward-gear RPM/speed ratios from live OpenRoadCode telemetry.

The learner subscribes to openroad.vehicle.state and records stable engine-speed / road-speed samples. After enough driving data has been collected, it clusters the samples into the requested number of forward gears and writes a small TOML profile that can later feed a runtime gear estimator.