I have a windows 7 computer where I installed FlightGear 2018.3.2
I have also some experience with Arduino.
My Specs are:
- Code: Select all
-Windows 7 x64
-Intel Core Duo @ 3.06GHz
-3GB Ram
-FlightGear 2018.3.2
I want to interface arduino to FlightGear as a joystick.
From this link:
http://wiki.flightgear.org/Howto:Use_Ar ... FlightGear
I created an XML file into the folder "Protocol", and its name is ArduinoThrottle.xml
The content of the xml file is:
- Code: Select all
<?xml version="1.0"?>
<PropertyList>
<generic>
<input>
<line_separator>\n</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>Throttle</name>
<node>/controls/engines/engine/throttle</node>
<type>float</type>
</chunk>
<chunk>
<name>Mixture</name>
<node>/controls/engines/engine/mixture</node>
<type>float</type>
</chunk>
</input>
</generic>
</PropertyList>
(anyone can tell me if "mixture" chunk is set correctly? I am not sure if this is the right property....)
Anyway... I started the FlightGear Qt Launcher and in additional settings i put this line:
- Code: Select all
--generic=serial,in,30,\\.\COM6,9600,ArduinoThrottle
(I verified that is COM6 Port)
(I also put "--console" option for debugging)
So then I started FlightGear.. I waited, and the whole program was stuck..
Here it is my console:
https://www.dropbox.com/s/lgfzvw8jqow677n/ConsoleStuck.PNG?dl=0
(P.S. : I understood all the sintax of the "--generic" option, the only thing that I cannot understand is the value "30" here:
--generic=serial,in,30,\\.\COM6,9600,ArduinoThrottle
someone can explain me what it does exactly? thanks)
If you need more information, just ask
I hope that someone can resolve this problem...