Merge pull request #17 from TomBric/master

Updates after testing (more messages, rotation)
pull/827/merge^2
Adrian Batzill 2019-06-29 20:19:44 +02:00 zatwierdzone przez GitHub
commit 26adb20989
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -232,7 +232,7 @@ func sendTrafficUpdates() {
// altitude lower than upper boundary
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
// altitude higher than upper boundary
if !ti.BearingDist_valid || ti.Distance<float64(globalSettings.RadarRange) * 1852.0 * 1.3 { //allow more so that aircraft moves out
if !ti.Position_valid || ti.Distance<float64(globalSettings.RadarRange) * 1852.0 * 1.3 { //allow more so that aircraft moves out
radarUpdate.SendJSON(ti)
}
}
@ -287,7 +287,7 @@ func registerTrafficUpdate(ti TrafficInfo) {
// altitude lower than upper boundary
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
// altitude higher than upper boundary
if !ti.BearingDist_valid || ti.Distance < float64(globalSettings.RadarRange) * 1852.0 * 1.3 { //allow more if aircraft moves out
if !ti.Position_valid || ti.Distance < float64(globalSettings.RadarRange) * 1852.0 * 1.3 { //allow more if aircraft moves out
radarUpdate.SendJSON(ti)
}
}

Wyświetl plik

@ -1,3 +1,9 @@
*:-webkit-full-screen {
width: 100%;
height: 100%;
}
//for iOS,Safari
.radar .backRect {
fill: black;
}

Wyświetl plik

@ -527,6 +527,8 @@ function RadarCtrl($rootScope, $scope, $state, $http, $interval) {
$state.get('radar').onEnter = function() {
//reset OldRotatingValue
OldGPSCourse = 0;
// everything gets handled correctly by the controller
};