Board index FlightGear Support Interfacing

Interface Arduino with FlightGear on windows  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

Re: Interface Arduino with FlightGear on windows

Postby SE-HK » Tue Jul 28, 2020 7:56 am

If you have problems to start it is also possible to start from the Nasal console. It may be possible to reduce debug time.

Code: Select all
fgcommand("add-io-channel", {"config": "generic,serial,in,30,/dev/ttyUSB0,38400,myprotocol", "name":"test"} );

To remove the io channel, run
Code: Select all
fgcommand("remove-io-channel", {"name":"test"} );


Another tip: I have experienced problem if the Arduino IDE's Serial Monitor is open (locking the device). The Arduino IDE can be running, but close the serial monitor before starting FG.
SE-HK
 
Posts: 54
Joined: Wed Sep 02, 2009 2:16 pm
Location: Stockholm, Sweden
Version: git
OS: Ubuntu 20.04

Previous

Return to Interfacing

Who is online

Users browsing this forum: No registered users and 2 guests