VW e-Golf: vehicle images and a pre-conditioning target temperature - #255
Open
Nueueuet wants to merge 3 commits into
Open
VW e-Golf: vehicle images and a pre-conditioning target temperature#255Nueueuet wants to merge 3 commits into
Nueueuet wants to merge 3 commits into
Conversation
Photographs of a 2016 e-Golf in white, taken by the owner and contributed under the project's licence, cut out and fitted to the three sizes the app uses: the three-quarter view for the car page, the top view the climate and charge pages compose their overlays onto, and the map marker. Listed as a vehicle type next to the e-Up, and added to the overlay and map galleries so it can be reached either way through the editor. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The arrows are a vector sized in dp and drawn for the Leaf's 320x560 top view. Every other car image is a nodpi bitmap of a different size, so on a normal-density screen the arrows are several times larger in pixels, the LayerDrawable adopts their size, and every layer below is stretched to their aspect ratio -- the car visibly widens the moment climate control runs, and the arrows land wherever the stretch puts them. Wrap the overlay so it reports the base image's size and fits itself centred inside it. For the Leaf, whose image matches the vector, nothing changes. Measured on a 250x485 top view: 671x1315 with and without the overlay, where before the climatising state came out 743 px wide. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The e-Golf keeps its pre-conditioning setpoint in the car's stored BatteryControl profile, and the module reads and writes it there. It is not carried by the v2 protocol, so the tab asks for it directly: `xvg ccstatus` on open, `xvg cctemp <15.5..30.0>` on release of the slider. Sending on release rather than while dragging keeps one write on the car's comfort bus per adjustment instead of one per step. `valid=0` in the status reply means the module has not read the car's profile yet, so the slider stays where it is rather than snapping to a placeholder. After a write the tab re-reads the car instead of trusting what it just sent. The slider is shown for car_type VWEG only; everywhere else the group stays gone and the tab looks as it did. The card grew a right-hand button column for that layout, again used only where the slider is, so the start button falls under the thumb rather than across the card from it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Member
|
Issues to resolve/discuss:
Regards, |
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.
VW e-Golf: vehicle images and a pre-conditioning target temperature
Three commits, each standing on its own.
Add VW e-Golf vehicle images
Photographs of a 2016 e-Golf in white, taken by the car's owner and contributed
under the project's licence, cut out and fitted to the three sizes the app uses:
the three-quarter view, the top view the climate and charge pages compose
overlays onto, and the map marker. Listed as a vehicle type next to the e-Up,
and added to the overlay and map galleries so it can be reached either way
through the editor.
Keep the AC arrows from stretching the car underneath
Independent of the e-Golf and worth a look on its own — it affects every vehicle
except the Leaf.
topview_ac_arrowsis a vector sized in dp and drawn for the Leaf's 320x560 topview. Every other car image is a nodpi bitmap of a different size, so on a
normal-density screen the arrows rasterise several times larger, the
LayerDrawableadopts their size as its own, and every layer below is stretchedto their aspect ratio. The car visibly widens the moment climate control starts,
and the arrows land wherever the stretch puts them.
The overlay is now wrapped so it reports the base image's size and fits itself,
centred, inside it. For the Leaf nothing changes. Measured on a 250x485 top
view: 671x1315 with and without the overlay, where before the climatising state
came out 743 px wide.
Climate tab: target temperature for the VW e-Golf
The e-Golf keeps its pre-conditioning setpoint in the car's stored
BatteryControl profile, and the module reads and writes it there. It is not
carried by the v2 protocol and cannot be derived from metrics, so the tab asks
the module directly:
xvg ccstatuswhen it opens,xvg cctemp <15.5..30.0>whenthe slider is released. On release rather than while dragging, so an adjustment
costs one write on the car's comfort bus instead of one per step.
valid=0in the reply means the module has not read the car's profile yet, sothe slider stays where it is rather than snapping to a placeholder. After a write
the tab re-reads the car instead of trusting what it just sent.
Shown for
car_type == "VWEG"only; everywhere else the group stays gone and thetab looks exactly as before. The card gained a right-hand button column used only
in that layout, so the start button falls under the thumb instead of across the
card from it.
Firmware side: the two commands are
openvehicles/Open-Vehicle-Monitoring-System-3#1507. Until that lands, the slider
is only reachable on a module built from that branch — it is gated on the car
type, so no other vehicle sees it either way.
Testing
ccstatuscomesback, and the slider snaps to the car's stored 18.0 °C. Moving it writes, the
car's BCU echoes, and the value survives a re-read.
in
CarRenderingUtilsis untouched by these changes.