How to Upload example codes to pixhawk with make commands

638 views
Skip to first unread message

Gursharan kumar

unread,
Apr 1, 2014, 4:35:43 AM4/1/14
to drones-...@googlegroups.com
Hi All,
                I am trying to run AP_BattMonitor_Test.pde (ardupilot/librariesAP_BattMonitor\examples\AP_BattMonitor_t) on my pixhawk to test the battery code for my setup. But i dont know how to upload this code on pixhawk autopilot. Is it possible to load it through make command. 

Randy Mackay

unread,
Apr 2, 2014, 5:22:31 AM4/2/14
to drones-...@googlegroups.com
Gursharan,

      It should be possible but embarrasingly I have to admit that I'm not sure how to do it.  Tridge knows of course.  If I were to try and figure this out I'd look for the "build_all" script somewhere in the Tools directory.  This is the script run by the autotester that builds all the examples and reports failures on the autotest web site.  http://autotest.diydrones.com/

     If you figure it out, please report back!

-Randy

On Tuesday, April 1, 2014 11:57 PM, Gursharan kumar <mechr...@gmail.com> wrote:
Hi All,
                I am trying to run AP_BattMonitor_Test.pde (ardupilot/librariesAP_BattMonitor\examples\AP_BattMonitor_t) on my pixhawk to test the battery code for my setup. But i dont know how to upload this code on pixhawk autopilot. Is it possible to load it through make command. 
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Andrew Tridgell

unread,
Apr 2, 2014, 4:50:58 PM4/2/14
to Gursharan kumar, drones-...@googlegroups.com
Hi Gursharan,
yes, you use "make px4-v2-upload" while in the example sketch directory.

Also, I've just pushed a fix for the build of the AP_BattMonitor
example, so make sure you update first.

Cheers, Tridge

Gursharan kumar

unread,
Apr 3, 2014, 4:48:37 AM4/3/14
to drones-...@googlegroups.com, Gursharan kumar, and...@tridgell.net
Thanks Tridge,
                        Its working now.

HaoTong Yan

unread,
May 30, 2014, 4:23:49 PM5/30/14
to drones-...@googlegroups.com, mechr...@gmail.com, and...@tridgell.net
Hi Andrew,

Would the same command work with a program that I wrote for a flight controller that used the APM and PX4 Libraries (given I create a makefile to go with that)? If I were to use that command and upload the program onto my Pixhawk (I have the 3DR IRIS), would that be the ONLY program that would be uploaded (because that's what I would like to do, if that were possible)? My goal is to strengthen my programming, math, and physics skills by writing my own flight controller, but not having to deal with the lower level code. I saw something just like that for the ArdupilotMega: http://ghowen.me/build-your-own-quadcopter-autopilot/

Will the command you posted achieve that? Thanks so much.

Best,

HaoTong
Reply all
Reply to author
Forward
0 new messages