Dashboard overlay (Overlays → Live → Dashboard): one inclinometer (compass ring, roll and pitch), speed, the speed limit with an over-limit warning and, on the route, the next limit change, traffic signal, maneuver and its lanes; /api/route gains speed_limits, signals and lanes, POST /api/road gives the driven road's limit; GNSS simulation (random trips over Valhalla) for trying it without the car; the HMC5883L heading in can.json
This commit is contained in:
1 parent
5958ffd153
commit
190a8ad334
13 files changed
+713
-27
No files matched your search
@@ -174,11 +174,22 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
** [ ] Discover our esphome-canopen nodes over SDO (0x1008 name, 0x2001 entity types,
|
||||
0x2000+0x10·N names/units/min/max, 0x1A00+n TPDO mapping): their entities decoded with no
|
||||
`can.json`; 0x1008/0x1018 identity for any CANopen device
|
||||
** [ ] A configurable dashboard overlay over the map (like dashcams burn it in): widgets picked
|
||||
and placed per screen, each bound to a signal — speed, turn signals, brake, … — and one
|
||||
combined inclinometer (Pajero style, but one instrument, not three): compass heading, pitch
|
||||
and roll, all from the GNSS node (pitch/roll already in its TPDO1; the HMC5883L compass
|
||||
still to add to its firmware); GNSS course as the heading until then
|
||||
** [x] A node that stops its heartbeat (3 missed) is flagged: one journal line when it goes
|
||||
silent and when it's back (`can: node 2 silent, last heartbeat …`), red in `/can.html`
|
||||
** [x] Dashboard overlay (Overlays → Live → Dashboard, `public/js/dashboard.js`): one combined
|
||||
inclinometer (Pajero style, but one instrument, not three) — compass ring around a rear view
|
||||
(roll) and a side view (pitch), amber past 20° roll / 25° pitch, red past 1.5× — and the
|
||||
speed; widgets on/off per device. Heading: driving (≥ 1.5 m/s) the GNSS course from fixes
|
||||
≥ 5 m apart, standing still the compass (`imu.heading`), else the last course, dimmed
|
||||
*** [ ] Widgets placed per screen and bound to any signal — turn signals, brake, … once the
|
||||
car's bridge puts them on the bus
|
||||
*** [x] The compass (HMC5883L on node 0x21, TPDO 0x221) as `imu.heading` + `mag.x/y/z` in
|
||||
`can.json` — for orienting while standing; driving uses the GNSS course
|
||||
*** [ ] Tilt compensation (pitch/roll from the IMU) and hard-/soft-iron calibration of the
|
||||
heading — ESPHome's is a plain `atan2(y, x)`; in the node, like the levelling
|
||||
*** [ ] IMU every 100–200 ms (the node reads it every 5 s today) and levelling done by the
|
||||
node itself, set by an SDO write from a button in `/can.html` — design in home-gitops
|
||||
`docs/canopen-nodes.adoc` ("Nulovanie náklonu a rýchlosť IMU")
|
||||
|
||||
=== 3D navigation mode
|
||||
|
||||
@@ -186,6 +197,35 @@ already reaches the home MQTT broker (`mqtt_ext`) from ESPHome nodes in `~/espho
|
||||
heading, pitched ~60°, smooth easing — the tracker's "Navigate" (see the Tablet-friendly
|
||||
section); follows the MQTT tracker, not the browser's own GNSS control yet
|
||||
** [ ] Real 3D relief from the raster-dem terrain and Liberty's `building-3d` extrusions while navigating
|
||||
* [ ] Full navigation (the car's main screen while driving; everything from our own Valhalla
|
||||
tiles, no online service — Valhalla has OSM `maxspeed`, `traffic_signals` and turn lanes)
|
||||
** [x] Basics on the dashboard (`public/js/dashboard.js`): the speed limit as a sign and a red
|
||||
warning over it (+3 km/h); on the route panel's route (≤ 50 m off it): the next limit
|
||||
change and its distance, the distance to the next traffic signal, the next maneuver and
|
||||
its lanes (from 1 km, the lanes to take highlighted). `/api/route` gains `speed_limits`
|
||||
(km → limit, per change), `signals` ([lon, lat, km]) and `maneuvers[].lanes`
|
||||
(`turn_lanes`), from the same `trace_attributes` pass as the countries; the route's
|
||||
signals drawn on the map from z14. Off the route / with none: `POST /api/road`
|
||||
(map-matched last fixes → the road's name and limit), every 4 s while moving
|
||||
** [ ] Speed limits that aren't on the edge: `maxspeed:conditional` (time, wet), variable
|
||||
signs, `zone:maxspeed` defaults per country (Valhalla leaves untagged roads empty — show
|
||||
the country's default by road class?), the vehicle's own limits (a camper > 3.5 t: 80/100)
|
||||
** [ ] Rerouting when off the route (> 50 m for a while): a new route from the position to the
|
||||
remaining points
|
||||
** [ ] Turn-by-turn: the next maneuver big (arrow, distance, street), voice
|
||||
(`speechSynthesis`), the route ahead highlighted / the driven part greyed
|
||||
** [ ] Lanes as proper arrows (SVG per direction bit, not Unicode) and only the lanes Valhalla
|
||||
marks for the maneuver; through-lanes guidance before motorway exits
|
||||
** [ ] Traffic signals with no route: around the position (Valhalla `locate` or the offline
|
||||
PBF), and only for the direction driven (`traffic_signals:direction`)
|
||||
** [ ] The "Navigate" follow mode for the CAN GNSS position (today the MQTT tracker and the
|
||||
browser's GNSS control), the dashboard as part of the driving-mode UI
|
||||
** [ ] `locate()` scans the whole route each fix — a window around the last hit on long routes
|
||||
** [x] GNSS simulation for trying it without the car (`lib/maptool/gnss_sim.rb`, Dashboard
|
||||
settings → "Simulate driving from the map center", `POST/DELETE /api/sim/gnss`): random
|
||||
trips over our Valhalla (2–8 km each, one after another) at 90 % of the road's limit, a fix
|
||||
a second into the same `gnss.*` signals / GNSS_LATEST as the node's (ignored meanwhile)
|
||||
*** [ ] Replay a library track (GPX/FIT with times) instead, at its own speed
|
||||
* [ ] While following a planned route: the route ahead highlighted, distance to the next
|
||||
maneuver from Valhalla's directions
|
||||
|
||||
|
||||
Reference in new issue
Block a user