Freitag, November 16, 2018

Condition on parameter - Low bus voltage

I took this feature to the next level.

The previous situation with a link between a switch and an instrument does not reflect the true logic of an small airplane. The new idea is when the bus power drops below a certain value, some instruments go off. The BATTERY SWITCH has no effect. For that you have to use "BUS_1_VOLTS". Imagine your battery in the airplane is dead, you can use the switch, but no reaction on the instruments. Or what if the generator fails during flight and you do not charge the battery. After a while you will get some electrical instruments failure. How exactly the behaviour is, I have to check on a real aircraft.

Remark: in the X-Plane C172, if the voltage drops below 20V most virtual instruments go off, like GPS and fuel indicators. Temperature and pressure indicators don't go off. I tested that. The corresponding dataref for low voltage is sim/aircraft/limits/red_lo_bat_volt. Now if the condition is also set to 20V, also the hardware instruments go off when voltage is below 20V. Which is nice to observe.

The syntax for the condition is:
<pin number> <parameter>
1 Bus_1_Volts

Here the relevant lines of the data.cfg. In yellow the condition and comparison of that condition.

[Conditions]
1 Bus_1_Volts
# -----------------------------
[Input]
S8.0 Beacon_Light
S8.1 Battery1_Switch
S8.2 Avionics_Master_Switch
S8.3 Bus_Cross_Tie
E8.5 Baro_Setting
# -----------------------------
[Output]
P30.0 Fuel_Level_Tank1  r=0,19.7,39.4,59,79.4 m=0,38,56,72,100   c=C1>20   f=x
P30.1 Fuel_Level_Tank2  r=0,19.7,39.4,59,79.4 m=0,38,56,72,100   c=C1>20   f=x
P30.2 Oil_Temp_C_Eng1  r=0,80,160,290         m=0,42,64,100   
P30.3 RPM_Engine1.      r=0,2260               m=0,100

Keine Kommentare: