From 5974fd226613a096c1dfa23a361a5f51ec73fa95 Mon Sep 17 00:00:00 2001 From: PepperJo Date: Wed, 24 Oct 2018 21:34:54 +0200 Subject: [PATCH] Website: Add height above ellipsoid Add GPS height above WGS-84 ellispoid to the website. Signed-off-by: PepperJo --- web/plates/gps.html | 6 +++++- web/plates/js/gps.js | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/plates/gps.html b/web/plates/gps.html index fd09267e..74a3319f 100644 --- a/web/plates/gps.html +++ b/web/plates/gps.html @@ -83,7 +83,11 @@
{{gps_lat}}, {{gps_lon}} ± {{gps_horizontal_accuracy}} m
- {{gps_alt}} ± {{gps_vertical_accuracy}} ft @ {{gps_vert_speed}} ft/min
+ Altitude MSL:
+ {{gps_alt}} ± {{gps_vertical_accuracy}} ft @ {{gps_vert_speed}} ft/min
+ Height WGS-84 ellipsoid:
+ {{ gps_height_above_ellipsoid }} ft + {{gps_track}}° @ {{gps_speed}} KTS
diff --git a/web/plates/js/gps.js b/web/plates/js/gps.js index d7244f89..4b448c91 100644 --- a/web/plates/js/gps.js +++ b/web/plates/js/gps.js @@ -165,6 +165,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) { $scope.gps_lat = situation.GPSLatitude.toFixed(5); // result is string $scope.gps_lon = situation.GPSLongitude.toFixed(5); // result is string $scope.gps_alt = situation.GPSAltitudeMSL.toFixed(1); + $scope.gps_height_above_ellipsoid = situation.GPSHeightAboveEllipsoid.toFixed(1); $scope.gps_track = situation.GPSTrueCourse.toFixed(1); $scope.gps_speed = situation.GPSGroundSpeed.toFixed(1); $scope.gps_vert_speed = situation.GPSVerticalSpeed.toFixed(1); @@ -172,6 +173,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) { $scope.gps_lat = "--"; $scope.gps_lon = "--"; $scope.gps_alt = "--"; + $scope.gps_height_above_ellipsoid = "--"; $scope.gps_track = "--"; $scope.gps_speed = "--"; $scope.gps_vert_speed = "--";