Repository navigation
Vela Nav 1.1.0: streets, outlined text, a smooth map, Home and Work - #34
Merged
Merged
Conversation
…, Home and Work - Streets: the phone sends the streets around the car (metres in the route's frame); they are drawn under the route and fade out away from it, as Vela's ESP32 display does. Two sets, so a new one swaps in whole. - The map fills the screen; text and turn signs are white with a black outline instead of sitting on black panels. - The car glides between the phone's once-a-second updates, at a frame rate set by what a frame costs. A new route replaces the shown one only when whole, and keeps the streets when it is in the same frame (the B frame tag). - Without a drive: Home and Work buttons. The phone says only which are set; a tap asks it to start the drive there (n1A). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The glyph tables for the 84 px and 40 px sizes are mostly long stretches of empty and solid pixels, so they are now stored as runs (a byte each: coverage and length) instead of 4 bits a pixel. Lossless: every screen draws the same pixels. The image goes from 126 KB to 115 KB of the 128 KiB limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Vela Nav's second update. It adds the streets around the route and Home/Work buttons, and makes the map move smoothly.
The screenshots come from
make simwith a scripted drive through a made-up town. The streets, names and times are all invented.What changed
G/H/J). The watch draws them under the route. Like Vela's ESP32 display, it fades them out away from the route ahead, using a coarse distance map rebuilt each frame. It holds two street sets, so a new one swaps in whole.frametag onB) keeps the streets.P), never where they are. A tap sendsn1A+ 1 or 2, and Vela starts that drive the way its Android Auto screen does.The protocol is documented at the top of
src/proto.rs. Older Vela builds still work: the watch ignores the missing messages and shows the route alone.Size
The image is 115 KB of the 128 KiB limit. The street buffers (2 × 6 KB), the second route buffer (4 KB) and the fonts (25 KB) take most of it. The two large font sizes are stored as runs of coverage, which is lossless and a third of their packed size.
Tested
make test APP=vela-nav: 24 tests, covering the street set swap, frames, route double buffering, the glide, the fade and the buttons.make checkandmake buildpass.make simwith the scripted drive above.🤖 Generated with Claude Code