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 @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…