Indeed, and here are the choices if you aren't using JSBSim ...
If it updates a lot, i.e. near frame rate, you can set up a property rule and use a simple gain filter with a gain of 1.0.
http://wiki.flightgear.org/Autopilot_co ... figurationhttp://wiki.flightgear.org/Autopilot_co ... .3Cgain.3E- Code: Select all
<filter>
<type>gain</type>
<gain>1.0</gain>
<input>master-property</input>
<output>slave-property</output>
</filter>
You might also be able to use a "logic" rule if the property is a boolean, e.g.
- Code: Select all
<logic>
<input>master-property</input>
<output>slave-property</output>
</logic>
(These normally have conditions in them but I think that would work. I haven't tested it).
If it changes less frequently, you can set up a listener in Nasal and set the slave property whenever the master changes, e.g.
- Code: Select all
setlistener("master-property", func(node) {
setprop("slave-property", node.getValue());
}, startup = 1, runtime = 0);
You could also use property aliases in some cases. That might be the simplest, depending on what you are doing, e.g. in -set.xml.
- Code: Select all
<engines>
<engine n="0">
<carb-temp-degc alias="/fdm/jsbsim/systems/carburettor/carb-temp-degC"/>
<cht-degc alias="/fdm/jsbsim/propulsion/engine/cht-degC"/>
<oil-temperature-degc alias="/fdm/jsbsim/propulsion/engine/oil-temperature-degC"/>
</engine>
</engines>