The automotive dashboard displays live vehicle state decoded through an ELM327-compatible OBD-II adapter. Both interfaces use the same Elm327ObdAdapter and Obd2Manager controller path.
apps/automotive_dashboard remains the home of standalone automotive compositions: command-line parsing, controller and hardware construction, top-level windows, polling, and process lifecycle. Reusable Tk presentation belongs under frontends/tk/automotive, and toolkit-independent data/request contracts belong under ui/automotive and ui/navigation.
The off-road panel is therefore usable both by this standalone application and as the Car UI Gauges -> Off-Road destination without either application importing the other.
The standalone navigation and vehicle terminal commands compose the reusable NavigationDashboardView and VehicleDashboardView from frontends/tui/automotive. The same views are used by the navigable apps/carTui application.
The configurable performance-style Tk panel can be exercised without an ELM327 adapter. The example generates synthetic telemetry while using the exact same VehicleGaugePanel hosted by Car UI:
Use Arrange gauges to change visibility and order. The layout is stored in ~/.config/openroadcode/vehicle_gauges.json.
The terminal dashboard uses Python's built-in curses support and requires no graphical desktop:
It displays connection status, RPM, speed, boost, temperatures, throttle, engine load, pressures, airflow, fuel level, and module voltage. Unsupported or unavailable values appear as --.
Controls:
Use --baud for a device with a non-default serial rate and --refresh to control the delay between complete vehicle-state polls:
RPM, speed, throttle, engine load, accelerator position, and manifold pressure are requested every fast poll. Temperatures, fuel, airflow, barometric pressure, and module voltage are cached and refreshed on the slower interval. The manager also discovers supported PIDs when it connects and does not request values the vehicle reports as unsupported.
The actual fast update rate is limited by the time needed for the supported sequential OBD-II requests; --refresh is an additional delay after each poll.
The navigation TUI displays live heading, pitch, roll, acceleration, and angular velocity from the navigation controller:
It uses the full navigation path:
Controls:
Use a different MPU-6050 address, display refresh rate, or complementary-filter time constant with:
Raw acceleration includes gravity and is useful for sensor diagnostics. Linear acceleration subtracts the gravity vector estimated from pitch and roll, so a stationary, calibrated sensor should report approximately zero on all axes. The linear result is sensitive to mounting alignment, sensor bias, vibration, and orientation-estimation error.
Before pressing c, park the vehicle on a stable surface and keep it completely still. Calibration averages accelerometer and gyroscope readings, removes the measured gyroscope zero-rate bias, and normalizes the stationary gravity magnitude. It also resets the orientation estimate and relative heading.
Run calibration automatically after connecting with:
The defaults use 100 samples spaced 0.01 seconds apart. They can be adjusted:
To include position, altitude, speed, course over ground, and GPS fix information from the existing gpsd service:
The default gpsd endpoint is 127.0.0.1:2947. Override it when needed:
GPS course is displayed but is not yet fused into the default relative-heading estimate.
The Tk dashboard remains available with:
The navigation visualizer draws a lightweight 3D wireframe Jeep and rotates it using live heading, pitch, and roll:
Use the Calibrate button or press c while the vehicle is stationary. Use Reset Heading or press h to zero relative heading. Press q or Escape to exit.
Run stationary calibration automatically after connecting:
Additional options control the MPU-6050 address, display update rate, complementary-filter time constant, and calibration sampling:
The off-road dashboard presents navigation data as a trail-oriented display with a large inclinometer, compass ribbon, pitch and roll cards, tilt warnings, linear acceleration, and optional GPS trail data:
Include position-derived altitude, speed, course, and satellite status from gpsd:
Default caution and warning colors approach 30 degrees of pitch and 25 degrees of roll. These are display thresholds, not a guarantee of rollover safety. They can be configured for experimentation:
Use Calibrate or c while stationary, Zero Heading or h to reset relative heading, and q or Escape to exit.
The heading card uses a top-view Jeep for IMU-relative heading. When GPS course is available, an amber arrow shows true course over ground with a cardinal label. Relative heading and GPS course use different references until an absolute-heading estimator is added.
If the estimated attitude indicates that the vehicle is substantially inverted, the dashboard displays a suitably dramatic CAPSIZED warning and suggests calling the winch crew. It does not contact emergency services or anyone else automatically.
The reusable Tk view lives in frontends/tk/automotive/offroad_dashboard_panel.py. It implements OrientationUiIf, TranslationUiIf, PositionUiIf, GroundTrackUiIf, and StatusUiIf. This application module retains navigation-controller creation, polling, calibration and heading-reset requests, unit conversion, and resource lifecycle.
GPS course over ground is represented by GroundTrackUiIf, not as vehicle heading. The two values can differ when a vehicle slides, reverses, or is affected by estimation error.