Howto:Use Arduino with FlightGear: Difference between revisions

Add updated changes and some potential pitfalls
(Added simple 2-axis tutorial by Scott.)
(Add updated changes and some potential pitfalls)
Line 218: Line 218:


You have to do this every time after you use the Arduino IDE.}}
You have to do this every time after you use the Arduino IDE.}}
{{Note|The above note may not be relevant to newer versions of the Arduino IDE software.}}


==== Starting FlightGear ====
==== Starting FlightGear ====
Line 235: Line 237:
dmesg | tail
dmesg | tail
</syntaxhighlight>
</syntaxhighlight>
It should give you a message something like <code>ttyACM0: USB ACM device</code> or <code>ttyACM1: USB ACM device</code>. That is your port. Finally, save setting by clicking "OK" and click "Run" to start FlightGear. For a more detailed guide, see [https://sites.google.com/site/flightgeararduinoandlinux/home Flightgear, Arduino and Linux]
It should give you a message something like <code>ttyACM0: USB ACM device</code> or <code>ttyACM1: USB ACM device</code>.  
 
{{Note|This command gives you the last event in the stack,
 
so you need to make sure you plug in or unplug your Arduino to the serial port
 
immediately prior to running the command.}}
 
That is your port. Finally, save setting by clicking "OK" and click "Run" to start FlightGear. For a more detailed guide, see [https://sites.google.com/site/flightgeararduinoandlinux/home Flightgear, Arduino and Linux]
 
{{Note|In some installations you need set permission for $user
 
to the groups tty and dialout or the Arduino will fail to
 
establish a connection to FlightGear.}}


== Example 3: Outputting properties ==
== Example 3: Outputting properties ==
330

edits