ArduPilot Process/File Hierarchy

Hi,

I'm trying to figure out how this beast works and so far, I'm only getting more and more confused. I'd really appreaciate a quick explanation.

What is the primary process that runs when I turn on the autopilot? Is it the Arduplane.pde? If it is, what are the other .pde files for?

So far, I've managed to figure out how Compass works but I still don't understand why are those files used, because in the comments it says the library is meant for I2C compass and as I understand, the magnetometer is integrated on the PCB.

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    hi Bojan,   welcome to Ardu-* software development!

    ArduPlane.pde is the "entry point" , which means it's where the code *starts*, but it relies on a number of additional Plane-specific files ( all the other ones in the same folder), and it also relies on a number of re-usable components ( called "libraries") that are shared among Plane, Quad,Blimp,Rover, etc,  ( which are found in the unsuprisingly named "libraries" folder that you'll find in the GIT source code along with ArduPlane, etc.   Finally, there are a number of re-usable generic components that are built-in to either the Arduino environment ( such as the digitalWrite() function) , or are builtin to the lower-level "AVR" compiler environment ( such as the sleep() function ).     

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…