AHRS attitude indicator displays tenth of degree changes.

pull/578/head
Eric Westphal 2017-02-10 23:14:19 -05:00
rodzic d17e218324
commit b3dd98cd76
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -98,8 +98,8 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
$scope.ahrs_heading = Math.round(status.Gyro_heading);
// pitch and roll are in degrees
$scope.ahrs_pitch = Math.round(status.Pitch);
$scope.ahrs_roll = Math.round(status.Roll);
$scope.ahrs_pitch = Math.round(status.Pitch*10)/10;
$scope.ahrs_roll = Math.round(status.Roll*10)/10;
// "LastAttitudeTime":"2015-10-11T16:47:03.534615187Z"
setGeoReferenceMap(status.Lat, status.Lng);