kopia lustrzana https://github.com/cyoung/stratux
Merge pull request #756 from PepperJo/showheightWGS84
Website: Add height above ellipsoidpull/809/merge
commit
cf28a07c9f
|
@ -83,7 +83,11 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<span class="col-xs-6 text-center">{{gps_lat}}, {{gps_lon}} ± {{gps_horizontal_accuracy}} m <br>
|
||||
{{gps_alt}} ± {{gps_vertical_accuracy}} ft @ {{gps_vert_speed}} ft/min</span>
|
||||
<b>Altitude MSL:</b> <br>
|
||||
{{gps_alt}} ± {{gps_vertical_accuracy}} ft @ {{gps_vert_speed}} ft/min <br>
|
||||
<b>Height WGS-84 ellipsoid:</b> <br>
|
||||
{{ gps_height_above_ellipsoid }} ft
|
||||
</span>
|
||||
<span class="col-xs-6 text-center">{{gps_track}}° @ {{gps_speed}} KTS</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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 = "--";
|
||||
|
|
Ładowanie…
Reference in New Issue