Build ArduPlane-v2.75 to Pixhawk


How can I build ArduCopter v3.1 (inside ArduPlane-v2.75 folder) for pixhawk?

If I use the I have version 3.2, but I want version 3.1 of ArduCopter.

But if I replace the ArduCopter v3.2 in the original zipfile from github with the ArduCopter v3.1 it will not build for px4 (with 'make px4' etc...). 

Can anyone explain how to do this?

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

Join diydrones

Email me when people reply –


  • This is the answer: You can get older versions (a.k.a. releases a.k.a. tags in github) by checking out these 3 links: 



    Always use matching versions of these three directories, if you don't chances are it won't compile (correctly). Indeed, as you can see not all ardupilot release come with a maching PX4Firmware and PX4NuttX release, so possibly not all ardupilot versions can be build for Pixhawk. (Correct me if I'm wrong).

    If you use this guide or and the links in there, you'll have the latest (developer) version, this might not be what you want. You for instance might want the latest stable release that MissionPlanner flashes to your Pixhawk when you select ArduCopter, -Plane, -Rover there. Checkout the version number of this stable release in MissionPlanner and look for this version in the three links above.

    Enjoy ;-)

    • So I've been able to compile different versions of ArduCopter because I'm able to download the same release of the PX4Firmware and PX4Nuttx repositories.  For ArduPlane, I don't see any PX4Firmware and PX4Nuttx releases that say ArduPlane in their listing.  So how do you get the proper source code for the ArduPlane stable releases.  I'm looking to compile the most recent ArduPlane firmware so I can do HIL with mission planner.

      Please let me know how to find the correct PX4Firmware and PX4Nuttx files for the ArduPlane stable version.



      • Developer


        If you look in the dataflash logs you should see somewhere near the top-ish it has a list of git has tags for ardupilot, PX4Firmware and PX4NuttX.  the tags are shorter than normal but still, if you do a "git checkout <tag>" then it should get the exact version used.

        I'm more copter than plane so I don't know much more than that but perhaps Grant or Tridge can help if you email

        • Randy,

            Just wanted to let you know that I was able to figure it out.  Your feedback was spot on.  I just didn't realize that the 8 character code was the tag and refers to the last commit in the repository that was used to make the firmware.  However I think there is a problem with the Arduplane 3.2.0 tags for PX4 and Nuttx repositories.  when I tried to check out those tags, it told me that those tags did not exist in the repository.  So I went back to ArduPlane 3.1.1.  Those tags worked and I was able to build the ArduPlane 3.1.1 firmware.  Is it possible that the tags were copied incorrectly into those messages or is that all automated?


          Thanks again for the help!!!

          • Developer


            Happy to help.

            Those git hashtags are all automatically copied so they should always be fine.  We occasionally need to do a forced update to git to bring in all the changes from the px4 guys but my understanding is that that does not affect existing git hashtags.  I don't know about the release tags though (like "ArduPlane-3.1.1") it may blast those which would explain what you're seeing.

            • Randy,
              So I went back and compiled a hil version of copter 3.2 for Quad and Heli frames. I played with the quad frame in x-plane. I had to disable the prearm checks and the state info was coming across and I got the Pixhawk to arm. Of course the outputs to control the helo were motor speeds so it didn't work correctly.
              So I tried the Heli in x-plane and it would not receive the state information and then wouldn't arm. In the status it said "waiting on HIL STATE info. I don't understand why it would see the data in Quad and not for the Heli frame. Any ideas?
        • Randy,

            Thanks for the prompt response.  Where would I find the dataflash logs?  do you mean a download from the pixhawk.  They are typically named like <date>.bin.log.  The one I looked at had the following  info in it 

          MSG, ArduPlane V3.2.0 (b88e6b63)
          MSG, PX4: 45694507 NuttX: 2d09d16d
          MSG, PX4v2 00380029 3233470E 31363032

          There were no tags in the PX4Firmware or PX4Nuttx repositories that had the ArduPlane V3.2.0 tag

  • Developer

    You'll likely need to use the code from the ArduCopter-3.1.1 or ArduCopter-3.1.2 branches inside of GitHub.  You also need to be sure to use the correct version of the PX4Firmware and PX4NuttX repositories.  There should be tags (aka "releases") that correspond to the arducopter version in those repositories.

This reply was deleted.


DIY Drones via Twitter
First impressions of Tinkergen MARK robocar
Nov 16
DIY Drones via Twitter
First impressions of the Intel OpenBot
Nov 10
DIY Drones via Twitter
Getting started with Robocars
Nov 1
DIY Drones via Twitter
RT @chr1sa: The US government just approved 5 US-made drones for purchase, all based on the @Dronecode @PX4Autopilot standard. Great news f…
Aug 20
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. Equally suitab…
Aug 3
DIY Drones via Twitter
RT @davsca1: Here is the video of the performance. This paper was a huge group effort and more than one year of work, where we combined and…
Jul 16
DIY Drones via Twitter
RT @chr1sa: My talk on PX4 and FAA certification is coming up at 1:45 PST today on the PX4 Dev Summit livestream. Includes some cool new st…
Jul 7
DIY Drones via Twitter
RT @seesharp: I'm tuned into the PX4 / Dronecode free live conference. Great stuff. Microsoft AirSim talk in 10 minutes.…
Jul 6
DIY Drones via Twitter
RT @chr1sa: Here's today's best times in the @DIYRobocars/@donkey_car virtual race of AI cars compared to last month's race on the same tra…
Jun 20
DIY Drones via Twitter
Jun 19
DIY Drones via Twitter
The difference between proper RC cars and toys (when you’re turning them into robots)
Jun 14
DIY Drones via Twitter
RT @Struktur3D: We have just posted on @DIYDrones for the first time in a long time. Continuing with our search for a #lasercutting service…
Jun 5
DIY Drones via Twitter
Review of the new Nivida Jetson NX for robocars
Jun 2
DIY Drones via Twitter
RT @chr1sa: Somehow I missed this, but last week @Nvidia released a new version of its Isaac robot development framework. Lots of new Lidar…
May 31