From 68cd0268e5ca52c88f3b63e889577687a206e6cc Mon Sep 17 00:00:00 2001 From: ztimson Date: Mon, 6 Apr 2026 21:41:50 -0400 Subject: [PATCH] Fixed gps --- client/public/notification-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/public/notification-bar.js b/client/public/notification-bar.js index 85f646e..d775ef1 100644 --- a/client/public/notification-bar.js +++ b/client/public/notification-bar.js @@ -112,7 +112,7 @@ class DashboardHeader extends HTMLElement { if (gpsInfo && gpsDetail) { if (hasValidFix) { gpsInfo.textContent = `${gps.latitude.toFixed(4)}, ${gps.longitude.toFixed(4)}`; - gpsDetail.textContent = `Alt: ${Math.round(gps.altitude)}m • Acc: ${Math.round(gps.accuracy)}m • ${gps.satellites} Sats`; + gpsDetail.textContent = `Alt: ${gps.altitude != null ? Math.round(gps.altitude) : '?'}m • Speed: ${ gps.speed != null ? Math.round(gps.speed * 10) / 10 : '?'} m/s
Acc: ${gps.accuracy ? Math.round(gps.accuracy) : 'None'}m • ${gps.satellites ?? '?'} Sats`; } else { gpsInfo.textContent = gps.satellites > 0 ? 'Acquiring Fix...' : 'No Fix'; gpsDetail.textContent = `${gps.satellites} satellites`;