Drop gpsd support and the GNSS simulator service: the car's GNSS comes over CAN later; /api/gnss/position and the GNSS control stay, fed through GNSS_LATEST
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-27 13:59:53 +01:00
1 parent 09a9d8baba
commit 49900c1703
10 files changed
+22 -133

No files matched your search

+3 -3
View File
@@ -5,11 +5,11 @@ import { isLoggedIn } from "/js/auth.js";
const POSITION_URL = "/api/gnss/position";
const POLL_INTERVAL_MS = 1500;
// A sidebar icon that polls /api/gnss/position (backed server-side by a
// gpsd connection, see lib/maptool/gpsd_client.rb) and shows the fix as a
// A sidebar icon that polls /api/gnss/position (the car's receiver, fed
// server-side into GNSS_LATEST in app.rb) and shows the fix as a
// marker, with fix status in a flyout. Polling rather than a push channel
// is deliberate — see the comment in app.rb next to GNSS_LATEST — and fits
// gpsd's own ~1Hz report rate fine.
// a receiver's ~1Hz report rate fine.
// One follow step for a moving position (this receiver, the browser's own
// geolocation). In the 3D (pitched) view it turns heading-up like a car
// navigation, with the position in the lower part of the screen; the last
+2 -2
View File
@@ -378,8 +378,8 @@ if (isLoggedIn()) map.addControl(new NotesControl(), "top-left");
// element) can still happen later.
const gnssControl = new GnssControl(map);
// Not MapLibre's own GeolocateControl (browser Geolocation API only) —
// this app has its own GNSS receiver (gpsd, possibly a simulated one, see
// bin/gnss_simulator.rb), and "find my location" should prefer that over a
// this app has its own GNSS receiver (the car's, see app.rb's
// GNSS_LATEST), and "find my location" should prefer that over a
// device's separate, often less accurate location service, but only once
// the "GNSS" sidebar icon actually turns it on — not just whenever a
// receiver happens to have a fix. See locate.js.