ArduCopter in action: Testing the QuadCopter (HIL mode) on X-Plane v9

ArduCopter in action: Testing the QuadCopter (HIL mode) on X-Plane v9

Here a video a the ArduMega board (2560 or 1280) with the firmware ArduCopter v2.1.1b (JLN update for X-Plane) connected on the X-Plane simulator throught the APM Planner in HIL mode. The QuadCopter QRO has been modelized for X-Plane v9.0 (or greater) so as get a closest replication of a true QuadCopter UAV.

This is a very good method for testing all the features of the ArduCopter firmware. For conducting a such test, only an ArduMega board (APM1280, APM2560, APM2) is used, no IMU shield or sensor are required here...


- Receiver: Turnigy 9X8C v2 connected to the APM board

- Transmitter: Turnigy 9x

- APM planner v1.1.1x

- ArduMega board (APM v1 or APM v2)

- firmware ArduCopter v2.x.x + the JLN mod for X-Plane

- Software: X-Plane v9 or greater

- QRO_X: the quadcopter model (by JLN) for X-Plane

More infos at:

Views: 21646

Comment by Anish on December 30, 2011 at 6:40am
This is awesome , I had been waiting for someone to model it in Xplanes , thanks :) please do a hexa and octo when u get a chance ;)

Comment by Jean-Louis Naudin on December 30, 2011 at 7:06am

Here the working setup for the ArduCopter in HIL mode with X-Plane. I shall soon post everything you need to test yourself the ArduCopter at home on X-plane...

Regards, Jean-Louis

Comment by Jean-Louis Naudin on December 30, 2011 at 7:59am

You will find everything you need for testing yourself the ArduCopter v2.1.1 on X-Plane at:



Comment by Matthias Badaire on December 30, 2011 at 8:03am

Jean-Louis, Where can we get the QuadCopter model for Xplane ?


Comment by on December 30, 2011 at 9:09am

You can find the model in the file above that Jean-Louis provided, or if you just want the individual files you can find that in the Arducopter XPlane Quadcopter Model

Comment by Jean-Louis Naudin on December 30, 2011 at 10:22am

Below some informations about the installation:

1) How to install the QRO_X model for X Plane:

you need only to copy the folder QRO_X to the Aircraft folder of Xplane

2) How to install the firmware ArduCopter:

The full ready set firmware is in the folder: firmware ArduCopter v2.1.1xp

You need only to compile it and download with arduino in a APM board.

To run the HIL mode, you may use a simple ArduMega board (APM1280, APM2560) without the IMU shield... You may of course use a full ArduMega (1280,2560) with the IMU shield installed on your quad and also the latest APM v2.

3) if you do a setup, reset on your APM board in CLI mode, the working PID for X-Plane are installed.

4) you may also set the good PID with the APM planner (AC21_Xplane_QRO.param)

DO NOT check the box Quad in the Simulation screen of the APM

If you want to use the original or your own version of the ArduCopter firmware, you need only to copy, the files:




into your ArduCopter firmware.

Enjoy to flight with the QRO_X mod for X_Plane with your APM...

Regards, Jean-Louis

Comment by Jean-Louis Naudin on December 30, 2011 at 3:06pm

The firmware for the HIL mode with X-Plane is now updated for the version v2.1.1r3... The LOITER is really impressive and very stable.

Good work Jason...

Regards, Jean-Louis

Comment by Javio on December 30, 2011 at 5:38pm

Really impressive!!! I am very interested in HIL simulations. Thank you very much.

Good Job!


Comment by Héctor García de Marina on January 1, 2012 at 3:01am

Just a tip for further works:

In my experience, X-Plane is not a "good" platform for testing avionics, this is not a real time software and it normally does not run in a hard-real time machine neither. You can not employ control techniques expecting a fixed time step for instance. Moreover, because of that you will realize that it does not have reliable "low-level" signals such as accelerometers, so Navigation algorithms (like the DCM) simply won't work as expected, leading to false results.

Of course, for "high-level" stuff like Guidance or "gross" Control loops (or whatever that does not rely so much in time-step) is ok.

Another consequence, is that one second in X-Plane (non-real time) is not the same second in your Hardware (real time).

Comment by Jean-Louis Naudin on January 1, 2012 at 3:47am

As far as I am concerned, X-Plane is one of the best simulator for conducting tests flights in HIL mode with the ArduMega and the APM planner. I am frequently use a such tool for the PIDs tuning and debugging the firmware of the ArduPlane and now on the ArduCopter firmware before field tests. This avoid to spend time in the field and also to spend money in expensive crashes... If the 3D models are well designed, the flights models can be very close to the real life. This allows to conduct intensive simulations with various weather conditions (strong wind, gust, wind shear...).

Below some demonstrative examples from my recent flights experiences:

The HIL mode test with the MAJA drone:


The MAJA drone in real life:


The HIL mode test with the Thermopilot glider drone:


The Thermopilot project in real life:



You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service