From 3e07390bacfb42015d65b8d164ccf90df61b0e91 Mon Sep 17 00:00:00 2001 From: Eric Westphal Date: Sun, 21 May 2017 17:13:42 -0400 Subject: [PATCH] GPS map transparent and values -- when no GPS fix. --- web/plates/gps.html | 4 ++-- web/plates/js/gps.js | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/web/plates/gps.html b/web/plates/gps.html index e649480a..6e1dbcb5 100644 --- a/web/plates/gps.html +++ b/web/plates/gps.html @@ -6,8 +6,8 @@
-
-
+
+
diff --git a/web/plates/js/gps.js b/web/plates/js/gps.js index 9cc706e1..a77f8c6e 100644 --- a/web/plates/js/gps.js +++ b/web/plates/js/gps.js @@ -212,9 +212,21 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) { if (situation.AHRSStatus & 0x01) { statusGPS.classList.remove("off"); statusGPS.classList.add("on"); + $scope.map_opacity = 1; + $scope.map_mark_opacity = 1; } else { statusGPS.classList.add("off"); statusGPS.classList.remove("on"); + $scope.gps_lat = "--"; + $scope.gps_lon = "--"; + $scope.gps_alt = "--"; + $scope.gps_track = "--"; + $scope.gps_speed = "--"; + $scope.gps_vert_speed = "--"; + $scope.gps_horizontal_accuracy = "\u221e"; + $scope.gps_vertical_accuracy = "\u221e"; + $scope.map_opacity = 0.2; + $scope.map_mark_opacity = 0; } if (situation.AHRSStatus & 0x02) { statusIMU.classList.remove("off");