<arduino-control>
<file>Aircraft/747-8i/Nasal/arduino-747.nas</file>
</arduino-control>
to the 747-8-main.xml between the <nasal></nasal> tags in order to 'call' my ardino-747.nas file which contains custom listeners for my interface (all working)
My question 1 is, how does FG use the <arduino-control> tag or is it just there to organise the code? Could it just go between the <747></747> tags?
Question 2 is, applying the same principal to the DC-3 JBsim, where would the <arduino-control> tags need to go as there seem to be so many .xml files dc-3-base.xml dc-3-jbsim.xml dc-3.xml. ...the reason I'm asking is because at the moment I have a hack pasted in to the dc3.nas:
- Code: Select all
setprop("input/arduino/gear-down", 1);
setlistener("input/arduino/gear-down", func(v)
{if (v.getBoolValue())
{controls.gearDown(1);}
else # if (v.getBoolValue() == 0 )
{controls.gearDown(-1);}
},1,0);
which listens to property to put the gear down but I'd like to tidy things up and have this code in a separate .nas file (just in case there are updates to the model and things get over-written).
I have some knowledge but this seems not as straight forward as the 747 example.