Integrates existing soaring instruments with the soaring sdk
[fg:toms-fgdata.git] / Aircraft / bocian / Nasal / vario.nas
1 # PZL Total Energy compensated variometers
2
3 io.include("Aircraft/Generic/soaring-instrumentation-sdk.nas");
4
5 var vario_ui = gui.Dialog.new(
6         "/sim/gui/dialogs/bocian/variometer/dialog",
7         "Aircraft/bocian/Dialogs/variometer.xml");
8
9 var probe = TotalEnergyProbe.new();
10
11 var needle1 = Dampener.new(
12         input: probe,
13         dampening: 2.5,
14         on_update: update_prop("/instrumentation/variometer/te-reading1-mps"));
15
16 var needle2 = Dampener.new(
17         input: probe,
18         dampening: 2.8,
19         on_update: update_prop("/instrumentation/variometer/te-reading2-mps"));
20
21 var instrument = Instrument.new(
22         components: [probe, needle1, needle2],
23         enable: 1);