add IAS and TAS display
This commit is contained in:
parent
2fc4f7fd3a
commit
d8e5c84839
|
|
@ -6,8 +6,9 @@ PlaneMarker.prototype.draw = function() {
|
||||||
var svg = this.svg;
|
var svg = this.svg;
|
||||||
if (!svg) return;
|
if (!svg) return;
|
||||||
|
|
||||||
if (this.groundtrack) {
|
var angle = this.groundtrack || this.heading;
|
||||||
svg.style.transform = 'rotate(' + (this.groundtrack) + 'deg)';
|
if (angle) {
|
||||||
|
svg.style.transform = 'rotate(' + angle + 'deg)';
|
||||||
} else {
|
} else {
|
||||||
svg.style.transform = null;
|
svg.style.transform = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -471,6 +471,12 @@ $(function(){
|
||||||
if ('verticalspeed' in marker) {
|
if ('verticalspeed' in marker) {
|
||||||
commentString += '<div>V/S: ' + marker.verticalspeed + ' ft/min</div>';
|
commentString += '<div>V/S: ' + marker.verticalspeed + ' ft/min</div>';
|
||||||
}
|
}
|
||||||
|
if ('IAS' in marker) {
|
||||||
|
commentString += '<div>IAS: ' + marker.IAS + ' kt</div>';
|
||||||
|
}
|
||||||
|
if ('TAS' in marker) {
|
||||||
|
commentString += '<div>TAS: ' + marker.TAS + ' kt</div>/';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
linkifySource(source);
|
linkifySource(source);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ class AirplaneLocation(IncrementalUpdate, TTLUpdate, LatLngLocation):
|
||||||
"groundspeed",
|
"groundspeed",
|
||||||
"verticalspeed",
|
"verticalspeed",
|
||||||
"identification",
|
"identification",
|
||||||
|
"TAS",
|
||||||
|
"IAS",
|
||||||
|
"heading",
|
||||||
]
|
]
|
||||||
ttl = 30
|
ttl = 30
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue