On Sun, 27 Feb 2011, Roberto Inzerillo wrote: > Hi everybody, > I'm fooling around with Arduino and FGFS, in order to create a few > physical instruments. > Very cool Roberto! Don't forget to get yourself a Centipede Shield or two. They're $20 each and give you 64 i/o channels each.
> Since I felt like using an intermediate piece of software that manages > data transfers between Arduino and FGFS (Instead of connecting them > directly one to the other) and every crazy thing my sick mind can > produce, I started making FGFS talk to a Python using a telnet > connection, then the script talks to the Arduino board on a serial > connection. Well, it works ... but the telnet connection is very slow > and that slows down every intercation, it makes it far less than realtime. > The way I did it (similiar situation) is to develop a data pump that constantly shoved out data from the simulator via UDP. The only time I used telnet was in order to set a value in the simulator. You can control the data rate of the data pump via command line switch. Check out the README.IO file for information on how you can use it. Another thing to consider is setting the the baud rate on the Arduino to 250000. I'm not sure on the Mega, but the ATMega328 chip has a 0% error rate at that baud rate setting g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind. http://www.simpits.org/geneb - The Me-109F/X Project ScarletDME - The red hot Data Management Environment A Multi-Value database for the masses, not the classes. http://www.scarletdme.org - Get it _today_! Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel