Integrates existing soaring instruments with the soaring sdk
[fg:toms-fgdata.git] / Aircraft / Grob-G109 / Nasal / te-vario.nas
1 # Winter Total Energy compensated variometers
2
3 io.include("Aircraft/Generic/soaring-instrumentation-sdk.nas");
4
5 var probe = TotalEnergyProbe.new();
6
7 var needle = Dampener.new(
8         input: probe,
9         dampening: 2.3,
10         on_update: update_prop("/instrumentation/variometer/te-reading-mps"));
11
12 var instrument = Instrument.new(
13         components: [probe, needle],
14         enable: 1);