new FBW Settings dialog to monitor FBW/hydraulic outputs

This commit is contained in:
Joshua Davidson 2017-05-11 18:58:16 -04:00
parent 188afcf7c2
commit 047750afdc
2 changed files with 120 additions and 3 deletions

View file

@ -101,6 +101,123 @@
</binding>
</button>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Roll</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<group>
<layout>vbox</layout>
<slider>
<pref-width>150</pref-width>
<property>/controls/flight/aileron-sum</property>
<min>-1</min>
<max>1</max>
<step>0.0001</step>
<live>true</live>
</slider>
</group>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Pitch</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<group>
<layout>vbox</layout>
<text>
<label>Pitch CMD: </label>
</text>
<slider>
<row>2</row>
<col>0</col>
<pref-height>150</pref-height>
<vertical>true</vertical>
<property>/controls/flight/elevator-sum</property>
<min>-1</min>
<max>1</max>
<step>0.0001</step>
<live>true</live>
</slider>
</group>
<group>
<layout>vbox</layout>
<text>
<label>Pitch Trim: </label>
</text>
<slider>
<row>2</row>
<col>0</col>
<pref-height>150</pref-height>
<vertical>true</vertical>
<property>/controls/flight/elevator-trim</property>
<min>-1</min>
<max>1</max>
<step>0.0001</step>
<live>true</live>
</slider>
</group>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Yaw</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<group>
<layout>vbox</layout>
<slider>
<pref-width>150</pref-width>
<property>/controls/flight/rudder-fdm</property>
<min>-1</min>
<max>1</max>
<step>0.0001</step>
<live>true</live>
</slider>
</group>
</group>
</group>
</PropertyList>

View file

@ -4,14 +4,14 @@
# Very Simple at the moment, but will evolve into a fully-fledged FMGC System. -JD
setlistener("/gear/gear[1]/wow", func {
gearfunc();
flarecheck();
});
setlistener("/gear/gear[2]/wow", func {
gearfunc();
flarecheck();
});
var gearfunc = func {
var flarecheck = func {
var gear1 = getprop("/gear/gear[1]/wow");
var gear2 = getprop("/gear/gear[2]/wow");
var state1 = getprop("/systems/thrust/state1");