ArduPilot 2.6.2 for the Flight Gear Simulator

This is my first post to

I think that it would be very nice to use same ArduPilot software in real life and with simulator.

So, according this blog post

I have modified ArduPilot so it can be used with Flight Gear Simulator.


Here are some instructions, how I got everything work with Windows.

- You only need to connect power source and FTDI cable to ArduPilot.
- Simulator does not work with shields and GPS installed. So remove them from ArduPilot.
- Install code to ArduPilot with Arduino IDE

Installing FlightGear in Windows
- Download and Install FlightGear Simulator

Create batch file


cd C:\PROGRA~1\FlightGear\BIN\win32

SET FG_HOME=c:/PROGRA~1/FlightGear

SET FG_ROOT=c:/PROGRA~1/FlightGear/data

SET FG_SCENERY=C:/PROGRA~1/FlightGear/data/Scenery;C:/PROGRA~1/FlightGear/scenery;C:/PROGRA~1/FlightGear/terrasync;c:/terrasync

fgfs.exe --aircraft=c172p-2dpanel --control=mouse --disable-intro-music --disable-random-objects --prop:/sim/rendering/random-vegetation=false --disable-ai-models --geometry=800x600 --bpp=32 --timeofday=noon --native-fdm=socket,out,10,,5500,udp --native-ctrls=socket,in,10,,5600,udp --native-ctrls=socket,out,10,,5700,udp --fg-root=C:/PROGRA~1/FlightGear/data --altitude=9999 --atlas=socket,out,5,localhost,5505,udp

- Download ArduFGcontrol from here
- Edit settings file as described in Readme.txt

Upload Waypoints to ArduPilot
- Download a sample mission file for the ArduFGControl from here (

- Install waypoints to ArduPilot with ConfigTool. Download it from

Ready for Takeoff
- Start ArduFGcontrol
- Start FlightGear by running BAT you just created

If you want install RC plane model to Flight Gear, you can download from here. Save unzipped files to Aircrafts-folder.

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones


This reply was deleted.