Howto:Use Arduino with FlightGear: Difference between revisions

Jump to navigation Jump to search
m
(Add updated changes and some potential pitfalls)
Line 77: Line 77:
</syntaxhighlight>
</syntaxhighlight>


=== Make Flightgear to read serial data ===
=== Make Flightgear read serial data ===
Find port where Arduino is connected. Look from Arduino IDE Tools... Serial Port... Should be something like ttyACM. (Note: Scott Bouch tutorial uses FGRUN which is not used anymore) Start Flightgear and paste following code to Settings... Additional settings... when starting Flightgear. Change serial port to correct port name.
Find the port where the Arduino is connected. Look for Arduino IDE Tools... Serial Port... Should be something like ttyACM0. (Note: Scott Bouch tutorial uses FGRUN which is not used anymore) Start Flightgear and paste following code to Settings... Additional settings... when starting Flightgear. Change serial port to correct port name. Note that the ".xml" extension for the protocol file should be omitted.


<syntaxhighlight>
<syntaxhighlight>
--generic=serial,in,30,/dev/ttyACM0,9600,hardware.xml
--generic=serial,in,30,/dev/ttyACM0,9600,hardware
</syntaxhighlight>
</syntaxhighlight>


2

edits

Navigation menu