20,741
edits
Line 211: | Line 211: | ||
conn.set("/gear/state", "up") | conn.set("/gear/state", "up") | ||
</syntaxhighlight> | </syntaxhighlight> | ||
There are a couple examples in the scripts section of the FG source code. There is a chunk of perl (telnet.pl) you can include to make access from a perl script mostly trivial. I think there is a java example and perhaps something for python. | |||
Some links to source code examples in various flavours: | Some links to source code examples in various flavours: | ||
Line 223: | Line 225: | ||
If you need to track 100 different variables at 60hz, this isn't the interface for you. | If you need to track 100 different variables at 60hz, this isn't the interface for you. | ||
For that you should consider using a native protocol, implemented in C++ (e.g. FGNetCtrl via UDP). | For that you should consider using a native protocol, implemented in C++ (e.g. FGNetCtrl via UDP). | ||
== Use Case: Radio Stack == | == Use Case: Radio Stack == |