Navdisplay: use true airspeed
This commit is contained in:
parent
a2aafc3b51
commit
9b4a1b52a4
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue