ArduPlane, ArduCopter, ArduRover, ArduSub source
Go to file
James Goppert fe7f3a40bc Added more info to README. 2011-10-30 23:15:03 -04:00
ArduBoat Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
ArduCopter Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
ArduPlane Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-10-30 23:12:53 -04:00
ArduRover Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
Tools First version of APM autotest 2011-10-31 13:50:34 +11:00
apo Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
archive more directories for the archive 2011-09-09 12:48:34 +10:00
cmake Added cpack packaging, ArduRover/ArduBoat/apo, building with cmake 2011-09-30 20:24:02 -04:00
libraries Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
.gitignore Ignored swap files. 2011-10-27 17:32:00 -04:00
.project Switching to new eclipse project style. 2011-10-30 22:57:34 -04:00
CMakeLists.txt Working on prototypes regex for cmake. 2011-10-30 17:34:54 -04:00
COPYING.txt cmake overhaul, cleaned up readme, added license 2011-09-30 17:32:51 -04:00
README.txt Added more info to README. 2011-10-30 23:15:03 -04:00

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 ..
 - make (will build every sketch)
 - make ArduPlane (will build just ArduPlane etc.)
 
Building using eclipse
-----------------------------------------------

	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
	
 	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 substitude for MinGW/ MSYS/ NMake (for windows)
 	(see http://www.vtk.org/Wiki/Eclipse_CDT4_Generator)

    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
    
    You can also import the source repository (/home/name/apm-src) if you want to modify the source/ commit using git.
    
  
  	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