forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
191 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ serialsent.raw | |
CMakeFiles | ||
CMakeCache.txt | ||
cmake_install.cmake | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
arducopter.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ArduPlane.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apo.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// Libraries | ||
#include <WProgram.h> | ||
#include <FastSerial.h> | ||
#include <AP_Common.h> | ||
#include <APM_RC.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
string(REGEX REPLACE ".*/" "" LIB_NAME ${CMAKE_CURRENT_SOURCE_DIR}) | ||
#message(STATUS "building lib: ${LIB_NAME}") | ||
file(GLOB ${LIB_NAME}_SRCS *.cpp) | ||
file(GLOB ${LIB_NAME}_HDRS *.h) | ||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
generate_arduino_library(${LIB_NAME}) | ||
set_target_properties(${LIB_NAME} PROPERTIES LINKER_LANGUAGE CXX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
set(CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../") | ||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) | ||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Arduino.cmake) | ||
|
||
string(REGEX REPLACE ".*/" "" PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR}) | ||
project(${PROJECT_NAME} C CXX) | ||
|
||
set (CMAKE_CXX_SOURCE_FILE_EXTENSIONS pde) | ||
|
||
find_package(Arduino 22 REQUIRED) | ||
|
||
if (NOT DEFINED BOARD) | ||
message(STATUS "board not defined, assuming mega, use cmake -DBOARD=mega2560 , etc. to specify") | ||
set(BOARD "mega") | ||
endif() | ||
message(STATUS "Board configured as: ${BOARD}") | ||
|
||
# need to configure based on host operating system | ||
set(${PROJECT_NAME}_PORT COM2) | ||
set(${PROJECT_NAME}_SERIAL putty -serial COM2 -sercfg 57600,8,n,1,X ) | ||
|
||
include_directories( | ||
${ARDUINO_LIBRARIES_PATH}/Wire | ||
${CMAKE_SOURCE_DIR}/libraries/APO | ||
${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
${CMAKE_SOURCE_DIR}/libraries/ModeFilter | ||
${CMAKE_SOURCE_DIR}/libraries/AP_Compass | ||
${CMAKE_SOURCE_DIR}/libraries/AP_RangeFinder | ||
${CMAKE_SOURCE_DIR}/libraries/AP_GPS | ||
${CMAKE_SOURCE_DIR}/libraries/AP_IMU | ||
${CMAKE_SOURCE_DIR}/libraries/AP_ADC | ||
${CMAKE_SOURCE_DIR}/libraries/AP_DCM | ||
${CMAKE_SOURCE_DIR}/libraries/APM_RC | ||
${CMAKE_SOURCE_DIR}/libraries/GCS_MAVLink | ||
${CMAKE_SOURCE_DIR}/libraries/APM_BMP085 | ||
) | ||
|
||
add_subdirectory(../libraries "${CMAKE_CURRENT_BINARY_DIR}/libs") | ||
|
||
set(${PROJECT_NAME}_BOARD ${BOARD}) | ||
file(GLOB ${PROJECT_NAME}_SKETCHES *.pde) | ||
file(GLOB ${PROJECT_NAME}_SRCS *.cpp) | ||
file(GLOB ${PROJECT_NAME}_HDRS *.h) | ||
set(${PROJECT_NAME}_LIBS | ||
c | ||
m | ||
APO | ||
FastSerial | ||
AP_Common | ||
GCS_MAVLink | ||
AP_GPS | ||
APM_RC | ||
AP_DCM | ||
AP_ADC | ||
AP_Compass | ||
AP_IMU | ||
AP_RangeFinder | ||
APM_BMP085 | ||
ModeFilter | ||
) | ||
|
||
|
||
|
||
|
||
|
||
generate_arduino_firmware(${PROJECT_NAME}) | ||
|
||
install(FILES | ||
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.hex | ||
DESTINATION bin | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
set(LIB_NAME APM_BMP085) | ||
|
||
set(${LIB_NAME}_SRCS | ||
APM_BMP085.cpp | ||
) # Firmware sources | ||
|
||
set(${LIB_NAME}_HDRS | ||
APM_BMP085.h | ||
) | ||
|
||
include_directories( | ||
|
||
- | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Math | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
#${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
# | ||
) | ||
|
||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
|
||
generate_arduino_library(${LIB_NAME}) | ||
include(ApmMakeLib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
set(LIB_NAME APM_PI) | ||
|
||
set(${LIB_NAME}_SRCS | ||
APM_PI.cpp | ||
#AP_OpticalFlow_ADNS3080.cpp | ||
) # Firmware sources | ||
|
||
set(${LIB_NAME}_HDRS | ||
APM_PI.h | ||
#AP_OpticalFlow_ADNS3080.h | ||
) | ||
|
||
include_directories( | ||
|
||
- | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Math | ||
${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
#${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
# | ||
) | ||
|
||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
|
||
generate_arduino_library(${LIB_NAME}) | ||
include(ApmMakeLib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include(ApmMakeLib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
set(LIB_NAME APM_RC) | ||
|
||
set(${LIB_NAME}_SRCS | ||
APM_RC.cpp | ||
) # Firmware sources | ||
|
||
set(${LIB_NAME}_HDRS | ||
APM_RC.h | ||
) | ||
|
||
include_directories( | ||
|
||
- | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Math | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
#${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
# | ||
) | ||
|
||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
|
||
generate_arduino_library(${LIB_NAME}) | ||
include(ApmMakeLib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1 @@ | ||
set(LIB_NAME APO) | ||
|
||
set(${LIB_NAME}_SRCS | ||
AP_Autopilot.cpp | ||
AP_CommLink.cpp | ||
AP_Controller.cpp | ||
AP_Guide.cpp | ||
AP_HardwareAbstractionLayer.cpp | ||
AP_MavlinkCommand.cpp | ||
AP_Navigator.cpp | ||
AP_RcChannel.cpp | ||
APO.cpp | ||
) # Firmware sources | ||
|
||
set(${LIB_NAME}_HDRS | ||
AP_Autopilot.h | ||
AP_CommLink.h | ||
AP_Controller.h | ||
AP_Guide.h | ||
AP_HardwareAbstractionLayer.h | ||
AP_MavlinkCommand.h | ||
AP_Navigator.h | ||
AP_RcChannel.h | ||
AP_Var_keys.h | ||
APO.h | ||
constants.h | ||
template.h | ||
) | ||
|
||
include_directories( | ||
# ${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
${CMAKE_SOURCE_DIR}/libraries/ModeFilter | ||
# | ||
) | ||
|
||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
|
||
generate_arduino_library(${LIB_NAME}) | ||
include(ApmMakeLib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1 @@ | ||
set(LIB_NAME AP_ADC) | ||
|
||
set(${LIB_NAME}_SRCS | ||
AP_ADC_HIL.cpp | ||
AP_ADC_ADS7844.cpp | ||
AP_ADC.cpp | ||
) # Firmware sources | ||
|
||
set(${LIB_NAME}_HDRS | ||
AP_ADC_HIL.h | ||
AP_ADC_ADS7844.h | ||
AP_ADC.h | ||
) | ||
|
||
include_directories( | ||
|
||
- | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Math | ||
#${CMAKE_SOURCE_DIR}/libraries/AP_Common | ||
#${CMAKE_SOURCE_DIR}/libraries/FastSerial | ||
# | ||
) | ||
|
||
set(${LIB_NAME}_BOARD ${BOARD}) | ||
|
||
generate_arduino_library(${LIB_NAME}) | ||
include(ApmMakeLib) |
Oops, something went wrong.