> Some years ago i wrote my own driver that interfaces my sim hardware (a
network of Microchip pics) to FG. It reads incoming messages and writes
the
> values direct to the tree.
>
> However, Nasal scripts controlling properties are becoming ever more
prevelant in FG. There can be a fight going on in software 10 times a
second
> as to a particular switch being on or off. Either the Nasal does not
work
> or
> the physical switch does not work!
>
> So for those of us who build sims, no one solution or custom IO module
suits
> all, (but if any one wants to copy my picF18 can bus setup they are most
welcome, just mail me)
>
> Is there a guide line for this kind of interfacing?
>
> If not and assuming nasal is the way to go,  I would propose we specify
a
> dedicated sub branch and format on the propriety tree where sim hardware
values can be written. That branch would only occur when such a driver
is
> in
> use.
>
> Then those who need too, can modify model and system nasal scripts
accordingly, 2 people can have 2 different sim set ups with different
interface drivers, But the tweaks we would make to Nasal would in fact
be
> the same because we would both present our sim hardware settings to the
same
> properties tree branch.
>
>
>
>
> Comments, been done before or other options to consider?

I've taken a different approach.  My boards all connect via USB to
driver(s) that take the switch states, run subsystem models as required,
and feed it to FG via UDP control socket and on the FG side the incoming
socket packet is distributed to the property tree as required and nasal
scripting is not enabled in the first place.

For the most part, only use the JSBSim models (which were also modified)
to handle engine operations and a complex tanking model for the 747. In
that way the cockpit side is pretty much immune from pertubations and
changes in FG, although have been "biten" a few times.

John
>
>
>
>
>
>
>
>
> --
> Regards Harry
> ------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data
in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
data
> generated by your applications, servers and devices whether physical,
virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>





------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to