Skip to content

Vela Nav 1.1.0: streets, outlined text, a smooth map, Home and Work - #34

Merged
freethinkel merged 2 commits into
fmctools:mainfrom
arunk140:vela-nav-roads
Nov 20, 2026
Merged

freethinkel merged 2 commits into
fmctools:mainfrom
arunk140:vela-nav-roads

Conversation

@arunk140

@arunk140 arunk140 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Vela Nav's second update. It adds the streets around the route and Home/Work buttons, and makes the map move smoothly.

Driving Turn ahead Zoomed out No drive

The screenshots come from make sim with a scripted drive through a made-up town. The streets, names and times are all invented.

What changed

  • Streets. Vela sends the streets around the car, from the same map tiles its phone map uses, as metres in the route's frame (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.
  • Map and text. The map now fills the screen. Text and turn signs are white with a black outline instead of sitting on black panels. The outline comes from a cheap bit-mask dilation of each glyph, and the sign renderer draws it in the same pass.
  • Smooth map.
    • The car glides between the phone's once-a-second updates. The frame interval adapts to how long the last frame took to draw.
    • A new route replaces the shown one only once it is complete.
    • A route sent again in the same frame (an optional frame tag on B) keeps the streets.
    • Vela now places the car on the route line instead of the raw GPS fix.
  • Home and Work. With no drive running, the app shows two buttons. Vela tells the watch only which of the two are set (P), never where they are. A tap sends n1A + 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 check and make build pass.
  • make sim with the scripted drive above.
  • On a real CMF Watch Pro 2 with Vela watch-v1.1.0.

🤖 Generated with Claude Code

arunk140 and others added 2 commits November 20, 2026 19:21
…, 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>
@freethinkel
freethinkel merged commit aabc460 into fmctools:main Nov 20, 2026
2 checks passed
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.

2 participants