Upload code to Pixhawk using Arduino

Hi,

I am new to Pixhawk. I just bought a pixhawk and want to upload my arducopter code (I added my own flight mode) to pixhawk using arduino. However, I found out that the selection of hal board in the arduino does not have pixhawk as one of the option. Does anyone know how to upload arducopter code to pixhawk?

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

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics

    If you use the Arduino IDE to make a hex file, Mission Planner can upload it for you. 

    • Admin

      @Chris,

      I do not believe that either the PX4 or the Pixhawk navigation processors are in the modified Arduino IDE HAL  dropdown board selector. At least the last time I looked they were not there.

      Regards,

      TCIII ArduRover2 Developer

      • So what should I do in order to select the suitable HAL?

        • Instructions for building for Pixhawk can be found here.  You can use Eclipse as an IDE - instructions are here

          Andrew

          • Hi;

             

            Also for Y6 config - should I just change the line '//#define FRAME_CONFIG QUAD_FRAME' in the APM_config.h file to :

            #define FRAME_CONFIG Y6_FRAME

            ?

             

            Or do I also need to do something else before compiling?

          • Hi;

             

            I have better luck with using the "make px4", 

            OK after I built the 'ArduCopter-v2.px4' with make, how do I upload this file to the Pixhawk?  via APMplanner? QGroundControl?  Where to place this file for them to upload?

             

            Rgds

             

             

            • Developer

              In APM Planner 2.0 enable 'Advanced Mode' front he File menu item. Then in the Install Firmware view under Intial Setup you can click the 'custom' button to upload your fw image.

          • I tried but it says I need Java Runtime Environment. How do I get this installed in windows 7?

          • Thanks a lot. It works!

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Monday
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Monday
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Monday
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23, 2021
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31, 2021
More…