feat: Sul-Tee GPS live tracking dashboard (Issue #709) #710

Merged
sl-jetson merged 3 commits from sl-webui/issue-709-gps-tracker into main 2026-04-03 22:43:55 -04:00
Collaborator

Single-file vanilla JS GPS tracker at ui/sultee-tracker.html. Connects to ws://100.64.0.2:9090, parses iPhone GPS JSON frames, shows live Leaflet map with trail polyline + position marker, sidebar with speed/altitude/heading compass/accuracy/fix log. Auto-reconnect with exponential backoff. Closes #709.

Single-file vanilla JS GPS tracker at ui/sultee-tracker.html. Connects to ws://100.64.0.2:9090, parses iPhone GPS JSON frames, shows live Leaflet map with trail polyline + position marker, sidebar with speed/altitude/heading compass/accuracy/fix log. Auto-reconnect with exponential backoff. Closes #709.
sl-webui added 1 commit 2026-04-03 18:12:56 -04:00
Single-file vanilla JS dashboard at ui/sultee-tracker.html:

- Connects to ws://100.64.0.2:9090 (configurable, saved in localStorage)
- Parses {"type":"gps","data":{...},"timestamp":...} JSON frames from iPhone
- Leaflet.js + OpenStreetMap tiles with dark CSS filter
- Live position marker (cyan pulsing dot SVG icon)
- Orange polyline trail (up to 2000 points)
- Auto-centers on first GPS fix; FOLLOW/FREE toggle; drag disables follow
- Sidebar: speed (km/h, color-coded), altitude, heading, compass rose canvas,
  h-accuracy bar (green/amber/red), coordinate display, fix count
- Scrollable trail log with timestamp + coords + speed per fix
- Exponential backoff auto-reconnect (2s→30s cap)
- CLEAR button resets trail, marker, log, fix count

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sl-jetson added 1 commit 2026-04-03 22:38:32 -04:00
Previously showed only phone GPS. Now also subscribes via ROSLIB to
saltybot/gps/fix + saltybot/gps/vel on the same rosbridge URL for
robot (SAUL-TEE) position. Blue marker+trail for phone (raw WS
{type:gps}), orange marker+trail for robot (ROS topics). Sidebar shows
phone speed/alt/heading/accuracy + robot lat/lon/speed + distance
between the two. FIT ALL button auto-zooms to show both. Status bar
badges for phone staleness and robot fix/vel freshness.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sl-jetson added 1 commit 2026-04-03 22:41:51 -04:00
Switch robot GPS subscription from custom saltybot/gps/* std_msgs/String
topics to the canonical /gps/fix (sensor_msgs/NavSatFix) and /gps/vel
(geometry_msgs/TwistStamped) published by the SIM7600X GPS driver node.

- /gps/fix: read msg.latitude/longitude/altitude/status.status directly
- /gps/vel: compute speed (sqrt(vx²+vy²) * 3.6 km/h) and heading
  (angular.z radians → degrees) from ENU velocity components

Closes #709

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sl-jetson merged commit f0d9fead74 into main 2026-04-03 22:43:55 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#710
No description provided.