kopia lustrzana https://github.com/cyoung/stratux
Merge pull request #17 from TomBric/master
Updates after testing (more messages, rotation)pull/827/merge^2
commit
26adb20989
|
@ -232,7 +232,7 @@ func sendTrafficUpdates() {
|
||||||
// altitude lower than upper boundary
|
// altitude lower than upper boundary
|
||||||
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
|
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
|
||||||
// altitude higher than upper boundary
|
// 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)
|
radarUpdate.SendJSON(ti)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,7 @@ func registerTrafficUpdate(ti TrafficInfo) {
|
||||||
// altitude lower than upper boundary
|
// altitude lower than upper boundary
|
||||||
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
|
if float32(ti.Alt) >= currAlt - float32(globalSettings.RadarLimits) * 1.3 {
|
||||||
// altitude higher than upper boundary
|
// 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)
|
radarUpdate.SendJSON(ti)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
*:-webkit-full-screen {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
//for iOS,Safari
|
||||||
|
|
||||||
.radar .backRect {
|
.radar .backRect {
|
||||||
fill: black;
|
fill: black;
|
||||||
}
|
}
|
||||||
|
|
|
@ -527,6 +527,8 @@ function RadarCtrl($rootScope, $scope, $state, $http, $interval) {
|
||||||
|
|
||||||
|
|
||||||
$state.get('radar').onEnter = function() {
|
$state.get('radar').onEnter = function() {
|
||||||
|
//reset OldRotatingValue
|
||||||
|
OldGPSCourse = 0;
|
||||||
// everything gets handled correctly by the controller
|
// everything gets handled correctly by the controller
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue