diff --git a/main/traffic.go b/main/traffic.go index 73a257c5..7a7cbd9d 100644 --- a/main/traffic.go +++ b/main/traffic.go @@ -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= 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) } } diff --git a/web/css/radar.css b/web/css/radar.css index 0f32bd79..9ba848cd 100644 --- a/web/css/radar.css +++ b/web/css/radar.css @@ -1,3 +1,9 @@ +*:-webkit-full-screen { + width: 100%; + height: 100%; +} +//for iOS,Safari + .radar .backRect { fill: black; } diff --git a/web/plates/js/radar.js b/web/plates/js/radar.js index f1b5338f..790ce7e4 100644 --- a/web/plates/js/radar.js +++ b/web/plates/js/radar.js @@ -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 };