Klimas

  • *
  • 2
Download the Source Code
« on: December 17, 2015, 04:13:05 pm »
Hi! I'm new in this forum, and this is my first time using UAV.

I had some project on my studies so I bought quadrocopter QAV250 on CC3D flight controller. I used LibrePilot softwere to upload Firmwere, I came throught Vehicle Setup Wizard, and configuration and perform first flight succesfully.

I need to change source code to automatic arming when my UAV will be falling down. Can somebody help me how can i get source code from CC3D? And how to open it and perform any changes?

Thx for any help!
Like I said I'm new with UAV's and it was big suprised that it's even flight a bit:)

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Download the Source Code
« Reply #1 on: December 17, 2015, 04:43:12 pm »
Hi Klimas, welcome.

You may start here: https://librepilot.atlassian.net/wiki/display/LPDOC/Developer+Manual
and setup a build environment.

Our Git repo is here: https://bitbucket.org/librepilot/librepilot/overview

Laurent

Re: Download the Source Code
« Reply #2 on: December 18, 2015, 11:51:11 pm »
It might be good to explore what you need for automatically arming when falling down.

Depending on design of RC radio, when RC radio goes out of range it can simply stop sending servo pulses.  The controller sees this and goes into "Failsafe mode".  Failsafe mode can be set to do anything that can be done by a fixed set of stick and switch positions on the transmitter.  The default for FC failsafe is to simply turn off all motors.  This is the safest.

If for instance you want to just have Attitude mode with 40% throttle for your failsafe, you do not need to write code.  It is already done.  If you have GPS working you can have failsafe return to point of arming (called Base for Return To Base) and land and stop motors.

I suggest that you study / search / read about all this setup stuff first.  :)