1
0
Fork 0

Navdisplay: use true airspeed

This commit is contained in:
Gijs de Rooy 2014-06-20 21:52:35 +02:00
parent a2aafc3b51
commit 9b4a1b52a4
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ NDSourceDriver.new = func {
};
m.get_lat= func getprop("/position/latitude-deg");
m.get_lon= func getprop("/position/longitude-deg");
m.get_spd= func getprop("/velocities/airspeed-kt");
m.get_spd= func getprop("/instrumentation/airspeed-indicator/true-speed-kt");
m.get_gnd_spd= func getprop("/velocities/groundspeed-kt");
m.get_vspd= func getprop("/velocities/vertical-speed-fps");
return m;

View file

@ -203,7 +203,7 @@ var NDStyles = {
init: func(nd,symbol),
predicate: func(nd) nd.aircraft_source.get_spd() > 100,
is_true: func(nd) {
nd.symbols.tas.setText(sprintf("%3.0f",getprop("/velocities/airspeed-kt") ));
nd.symbols.tas.setText(sprintf("%3.0f",nd.aircraft_source.get_spd() ));
nd.symbols.tas.show();
},
is_false: func(nd) nd.symbols.tas.hide(),