mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
ArduPlane, ArduCopter, ArduRover, ArduSub source
arducopterardupilotarduplanearduroverardusubautopilotauvcopterdronedronekitmavlinkplaneroboticsrosrovroversubuasuavugv
b65eb110bd
Revert "Arducopter Motors Octa: Change V frame MOT_ output ordering." This reverts commit bdab02f408ddc5451fcb4c6390b2475d31ac657f. Revert "hexa frame FRAME_CONFIG fixup" This reverts commit d15e692df613cb728ec671a54dce166f6f1940a0. Revert "Arducopter Motors Octa: revert OCTA_V_FRAME back to part of OCTA_FRAME" This reverts commit cb0a8c62fbd07a8ae9dcb8d4fffce337ace1aa1c. Revert "Arducopter Motors Hexa: Change ordering of MOT designations in Plus frame" This reverts commit 120d7f9050d5ec9f8fbe02c0ed4f38621949f4ee. Revert "Arducopter Motors Hexa: Revert HEXA_PLUS_ and HEXA_X_ to single HEXA_FRAME" This reverts commit 7d65ec311fd2e1222a36d0b34c366e21f3869fcc. Revert "Arducopter Frames: revert to old HEXA_FRAME and OCTA_FRAME defines." This reverts commit 47c6e8662f4d5e8fb920f2049338541343d8d18e. Revert "Add Max's changes for new MOT mappings. Defines new FRAME_CONFIG types." This reverts commit 8259c90ec7cb29dedac19890cd9a4449b7399e36. |
||
---|---|---|
apo | ||
archive | ||
ArduBoat | ||
ArduCopter | ||
ArduPlane | ||
ArduRover | ||
cmake | ||
libraries | ||
Tools | ||
.gitignore | ||
.project | ||
CMakeLists.txt | ||
COPYING.txt | ||
Doxyfile.in | ||
README.txt |
Building using arduino -------------------------- To install the libraries: - copy Library Directories to your \arduino\hardware\libraries\ or arduino\libraries directory - Restart arduino IDE * Each library comes with a simple example. You can find the examples in menu File->Examples Building using make ----------------------------------------------- - go to directory of sketch and type make. Building using cmake ----------------------------------------------- - mkdir build - cd build - cmake .. -DBOARD=mega -DPORT=/dev/ttyUSB0 You can select from mega/mega2560. If you have arduino installed in a non-standard location you by specify it by using: -DARDUINO_SDK_PATH=/path/to/arduino .. - make (will build every sketch) - make ArduPlane (will build just ArduPlane etc.) - make ArduPloat-upload (will upload the sketch) If you have a sync error during upload reset the board/power cycle the board before the upload starts. Building using eclipse ----------------------------------------------- Getting the Source: assuming source located here: /home/name/apm-src You can either download it or grab it from git: git clone https://code.google.com/p/ardupilot-mega/ /home/name/apm-src Generating the Eclipse Project for Your System: mkdir /home/name/apm-build cd /home/name/apm-build cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../apm-src -D BOARD=mega -D PORT=/dev/ttyUSB0 Note: Unix can be substituted for MinGW/ MSYS/ NMake (for windows) (see http://www.vtk.org/Wiki/Eclipse_CDT4_Generator) input options: CMAKE_BUILD_TYPE choose from DEBUG, RELEASE etc. PORT is the port for uploading to the board, COM0 etc on windows. /dev/ttyUSB0 etc. on linux BOARD is your board type, mega for the 1280 or mega2560 for the 2560 boards. ARDUINO_SDK_PATH if it is not in default path can specify as /path/to/arduino Importing the Eclipse Build Project: Import project using Menu File->Import Select General->Existing projects into workspace: Browse where your build tree is and select the root build tree directory. Keep "Copy projects into workspace" unchecked. You get a fully functional eclipse project Importing the Eclipse Source Project: You can also import the source repository (/home/name/apm-src) if you want to modify the source/ commit using git. Settings up Eclipse to Recognize PDE files: Window > Preferences > General > Content Types. This tree associates a filename or filename pattern with its content type so that tools can treat it properly. Source and header files for most languages are under the Text tree. Add "*.pde" as a C++ Source. Autocompletion: Right click on source project -> Properties -> Project References -> apm-build Project Advanced: * Regenerating the eclipse source project file: cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE /home/name/apm-src Build a package using cpack ----------------------------------------------- - cd build - cmake .. - make package - make package_source vim:ts=4:sw=4:expandtab