mirror of https://github.com/ArduPilot/ardupilot
ArduPlane cmake build working.
This commit is contained in:
parent
c76846dfa6
commit
ed0722e298
1
.project
1
.project
|
@ -3,7 +3,6 @@
|
|||
<name>ArduPilotMega-Source@ardupilotone</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
<project>ArduPilotMega@ardupilotone-unix</project>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
|
|
|
@ -124,16 +124,16 @@ macro(add_sketch SKETCH_NAME BOARD PORT)
|
|||
foreach(PDE ${PDE_SOURCES})
|
||||
message(STATUS "pde: ${PDE}")
|
||||
file(READ ${PDE} FILE)
|
||||
string(REGEX MATCHALL "([a-zA-Z]+[ ]+)*[ ]*[a-zA-Z0-9]+[ ]+[_a-zA-Z0-9]+[(][^)]*[)]" PROTOTYPES ${FILE})
|
||||
string(REGEX MATCHALL "[\n]([a-zA-Z]+[ ])*[_a-zA-Z0-9]+([ ]*[\n][\t]*|[ ])[_a-zA-Z0-9]+[ ]?[\n]?[\t]*[ ]*[(]([\t]*[ ]*[*]?[ ]?[a-zA-Z0-9_][,]?[ ]*[\n]?)*[)]" PROTOTYPES ${FILE})
|
||||
foreach(PROTOTYPE ${PROTOTYPES})
|
||||
message(STATUS "\tprototype: ${PROTOTYPE};")
|
||||
file(APPEND ${SKETCH_CPP} "${PROTOTYPE};\n")
|
||||
file(APPEND ${SKETCH_CPP} "${PROTOTYPE};")
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
|
||||
# write source
|
||||
file(APPEND ${SKETCH_CPP} "${FILE_BODY}")
|
||||
file(APPEND ${SKETCH_CPP} "\n${FILE_BODY}")
|
||||
list(REMOVE_ITEM PDE_SOURCES ${SKETCH_PDE})
|
||||
list(SORT PDE_SOURCES)
|
||||
foreach (PDE ${PDE_SOURCES})
|
||||
|
@ -157,5 +157,5 @@ endmacro()
|
|||
add_sketch(apo ${BOARD} ${PORT})
|
||||
add_sketch(ArduRover ${BOARD} ${PORT})
|
||||
add_sketch(ArduBoat ${BOARD} ${PORT})
|
||||
#add_sketch(ArduPlane ${BOARD} ${PORT})
|
||||
add_sketch(ArduPlane ${BOARD} ${PORT})
|
||||
#add_sketch(ArduCopter ${BOARD} ${PORT})
|
||||
|
|
|
@ -220,7 +220,7 @@ void AP_GPS_IMU::GPS_join_data(void)
|
|||
*
|
||||
****************************************************************/
|
||||
// checksum algorithm
|
||||
void AP_GPS_IMU::checksum(byte data)
|
||||
void AP_GPS_IMU::checksum(unsigned char data)
|
||||
{
|
||||
ck_a += data;
|
||||
ck_b += ck_a;
|
||||
|
|
Loading…
Reference in New Issue