Skip to content

refactor: name the door window params after the status model - #56

Draft
nanomad wants to merge 1 commit into
developfrom
fix/name-door-windows-by-position
Draft

nanomad wants to merge 1 commit into
developfrom
fix/name-door-windows-by-position

Conversation

@nanomad

@nanomad nanomad commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Names the door window params after the status model.

Changes

  • RvcParamsId: params 10, 11 and 12 become WINDOW_PASSENGER, WINDOW_REAR_LEFT and WINDOW_REAR_RIGHT. WINDOW_2, WINDOW_3 and WINDOW_4 stay as aliases, so existing code keeps working.
  • VehicleWindowId: gets PASSENGER, REAR_LEFT and REAR_RIGHT, with the old names kept as aliases.
  • control_windows and control_door_windows use the new names.
  • Nothing sent to the car changes. tests/test_door_window_names.py checks the new IDs, the aliases, and that control_windows sends the same bytes.

Why

The vehicle status reports driverWindow, passengerWindow, rearLeftWindow and rearRightWindow. WINDOW_2, WINDOW_3 and WINDOW_4 say nothing about which window they are.

Draft: the order is inferred

The mapping 9 = driver, 10 = passenger, 11 = rear left, 12 = rear right follows the order of the status fields. It is not confirmed. Keep this as a draft until it is checked against the app or a capture, ideally on a right-hand-drive car (compare #51/#52, where the front seats turned out to be physical sides).

The old names are kept as aliases either way, so nothing breaks if a name changes later.

https://claude.ai/code/session_013xKSpu8ev4cxQNsitcCidm

Params 10, 11 and 12 become WINDOW_PASSENGER, WINDOW_REAR_LEFT and WINDOW_REAR_RIGHT, matching driverWindow, passengerWindow, rearLeftWindow and rearRightWindow in the vehicle status. WINDOW_2, WINDOW_3 and WINDOW_4 stay as aliases, so existing code keeps working. Nothing sent to the car changes.

This branch has not been deployed

No deployments
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