mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 14:10:34 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 268d29a3a9 |
Vendored
+11
-5
@@ -2,12 +2,18 @@
|
|||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "PX4",
|
"name": "PX4",
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**"
|
|
||||||
],
|
|
||||||
"defines": [],
|
|
||||||
"macFrameworkPath": [],
|
|
||||||
"configurationProvider": "ms-vscode.cmake-tools",
|
"configurationProvider": "ms-vscode.cmake-tools",
|
||||||
|
"compileCommands": "${workspaceFolder}/.vscode/compile_commands.json",
|
||||||
|
"includePath": [
|
||||||
|
".",
|
||||||
|
"${workspaceFolder}/platforms/common",
|
||||||
|
"${workspaceFolder}/platforms/common/include",
|
||||||
|
"${workspaceFolder}/src",
|
||||||
|
"${workspaceFolder}/src/include",
|
||||||
|
"${workspaceFolder}/src/lib",
|
||||||
|
"${workspaceFolder}/src/lib/matrix",
|
||||||
|
"${workspaceFolder}/src/modules"
|
||||||
|
],
|
||||||
"cppStandard": "c++14",
|
"cppStandard": "c++14",
|
||||||
"cStandard": "c11"
|
"cStandard": "c11"
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+10
@@ -6,6 +6,16 @@ CONFIG:
|
|||||||
buildType: RelWithDebInfo
|
buildType: RelWithDebInfo
|
||||||
settings:
|
settings:
|
||||||
CONFIG: px4_sitl_default
|
CONFIG: px4_sitl_default
|
||||||
|
px4_sitl_asan:
|
||||||
|
short: px4_sitl (AddressSanitizer)
|
||||||
|
buildType: AddressSanitizer
|
||||||
|
settings:
|
||||||
|
CONFIG: px4_sitl_default
|
||||||
|
px4_sitl_ubsan:
|
||||||
|
short: px4_sitl (UndefinedBehaviorSanitizer)
|
||||||
|
buildType: UndefinedBehaviorSanitizer
|
||||||
|
settings:
|
||||||
|
CONFIG: px4_sitl_default
|
||||||
px4_sitl_replay:
|
px4_sitl_replay:
|
||||||
short: px4_sitl_replay
|
short: px4_sitl_replay
|
||||||
buildType: RelWithDebInfo
|
buildType: RelWithDebInfo
|
||||||
|
|||||||
Vendored
+5
-1
@@ -5,7 +5,9 @@
|
|||||||
"breadcrumbs.enabled": true,
|
"breadcrumbs.enabled": true,
|
||||||
"C_Cpp.autoAddFileAssociations": false,
|
"C_Cpp.autoAddFileAssociations": false,
|
||||||
"C_Cpp.clang_format_fallbackStyle": "none",
|
"C_Cpp.clang_format_fallbackStyle": "none",
|
||||||
|
"C_Cpp.configurationWarnings": "Disabled",
|
||||||
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true,
|
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true,
|
||||||
|
"C_Cpp.default.compileCommands": "${workspaceFolder}/.vscode/compile_commands.json",
|
||||||
"C_Cpp.default.cppStandard": "c++14",
|
"C_Cpp.default.cppStandard": "c++14",
|
||||||
"C_Cpp.default.cStandard": "c11",
|
"C_Cpp.default.cStandard": "c11",
|
||||||
"C_Cpp.formatting": "Disabled",
|
"C_Cpp.formatting": "Disabled",
|
||||||
@@ -16,8 +18,10 @@
|
|||||||
"cmake.buildDirectory": "${workspaceFolder}/build/${variant:CONFIG}",
|
"cmake.buildDirectory": "${workspaceFolder}/build/${variant:CONFIG}",
|
||||||
"cmake.buildTask": true,
|
"cmake.buildTask": true,
|
||||||
"cmake.configureOnOpen": true,
|
"cmake.configureOnOpen": true,
|
||||||
|
"cmake.copyCompileCommands": "${workspaceFolder}/.vscode/compile_commands.json",
|
||||||
"cmake.ctest.parallelJobs": 1,
|
"cmake.ctest.parallelJobs": 1,
|
||||||
"cmake.skipConfigureIfCachePresent": true,
|
"cmake.ignoreKitEnv": true,
|
||||||
|
"cmake.skipConfigureIfCachePresent": false,
|
||||||
"cmakeExplorer.buildDir": "${workspaceFolder}/build/px4_sitl_test",
|
"cmakeExplorer.buildDir": "${workspaceFolder}/build/px4_sitl_test",
|
||||||
"cmakeExplorer.parallelJobs": 1,
|
"cmakeExplorer.parallelJobs": 1,
|
||||||
"cmakeExplorer.suiteDelimiter": "-",
|
"cmakeExplorer.suiteDelimiter": "-",
|
||||||
|
|||||||
@@ -210,7 +210,6 @@ function(px4_add_board)
|
|||||||
foreach(metadata ${EMBEDDED_METADATA})
|
foreach(metadata ${EMBEDDED_METADATA})
|
||||||
if(${metadata} STREQUAL "parameters")
|
if(${metadata} STREQUAL "parameters")
|
||||||
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/params.json.xz)
|
list(APPEND romfs_extra_files ${PX4_BINARY_DIR}/params.json.xz)
|
||||||
list(APPEND romfs_extra_dependencies parameters_xml)
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "invalid value for EMBEDDED_METADATA: ${metadata}")
|
message(FATAL_ERROR "invalid value for EMBEDDED_METADATA: ${metadata}")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -261,6 +261,18 @@ endif()
|
|||||||
set(msg_files ${msg_files} PARENT_SCOPE)
|
set(msg_files ${msg_files} PARENT_SCOPE)
|
||||||
|
|
||||||
# Generate uORB headers
|
# Generate uORB headers
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} tools/px_generate_uorb_topic_files.py
|
||||||
|
--headers
|
||||||
|
-f ${msg_files}
|
||||||
|
-i ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
-o ${msg_out_path}
|
||||||
|
-e templates/uorb
|
||||||
|
-t ${CMAKE_CURRENT_BINARY_DIR}/tmp/headers
|
||||||
|
-q
|
||||||
|
${added_arguments}
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
add_custom_command(OUTPUT ${uorb_headers}
|
add_custom_command(OUTPUT ${uorb_headers}
|
||||||
COMMAND ${PYTHON_EXECUTABLE} tools/px_generate_uorb_topic_files.py
|
COMMAND ${PYTHON_EXECUTABLE} tools/px_generate_uorb_topic_files.py
|
||||||
--headers
|
--headers
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ add_custom_command(OUTPUT ${PX4_BINARY_OUTPUT}
|
|||||||
)
|
)
|
||||||
|
|
||||||
# create .px4 with parameter and airframe metadata
|
# create .px4 with parameter and airframe metadata
|
||||||
if (TARGET parameters_xml AND TARGET airframes_xml)
|
if(TARGET airframes_xml)
|
||||||
|
|
||||||
string(REPLACE ".elf" ".px4" fw_package ${PX4_BINARY_DIR}/${FW_NAME})
|
string(REPLACE ".elf" ".px4" fw_package ${PX4_BINARY_DIR}/${FW_NAME})
|
||||||
|
|
||||||
@@ -182,7 +182,6 @@ if (TARGET parameters_xml AND TARGET airframes_xml)
|
|||||||
DEPENDS
|
DEPENDS
|
||||||
${PX4_BINARY_DIR}/${PX4_BOARD}.bin
|
${PX4_BINARY_DIR}/${PX4_BOARD}.bin
|
||||||
airframes_xml
|
airframes_xml
|
||||||
parameters_xml
|
|
||||||
COMMENT "Creating ${fw_package}"
|
COMMENT "Creating ${fw_package}"
|
||||||
WORKING_DIRECTORY ${PX4_BINARY_DIR}
|
WORKING_DIRECTORY ${PX4_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# context
|
# context
|
||||||
|
execute_process(COMMAND make --no-print-directory --quiet pass1dep WORKING_DIRECTORY ${NUTTX_DIR} OUTPUT_QUIET)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT
|
OUTPUT
|
||||||
${NUTTX_DIR}/include/nuttx/config.h
|
${NUTTX_DIR}/include/nuttx/config.h
|
||||||
|
|||||||
@@ -37,5 +37,6 @@ px4_add_module(
|
|||||||
SRCS
|
SRCS
|
||||||
ads1115_main.cpp
|
ads1115_main.cpp
|
||||||
ADS1115.cpp
|
ADS1115.cpp
|
||||||
|
ADS1115.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -35,10 +35,11 @@ px4_add_module(
|
|||||||
MODULE drivers__barometer__bmp388
|
MODULE drivers__barometer__bmp388
|
||||||
MAIN bmp388
|
MAIN bmp388
|
||||||
SRCS
|
SRCS
|
||||||
bmp388_spi.cpp
|
|
||||||
bmp388_i2c.cpp
|
bmp388_i2c.cpp
|
||||||
bmp388.cpp
|
|
||||||
bmp388_main.cpp
|
bmp388_main.cpp
|
||||||
|
bmp388_spi.cpp
|
||||||
|
bmp388.cpp
|
||||||
|
bmp388.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
drivers_barometer
|
drivers_barometer
|
||||||
px4_work_queue
|
px4_work_queue
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ px4_add_module(
|
|||||||
DPS310_I2C.cpp
|
DPS310_I2C.cpp
|
||||||
DPS310_SPI.cpp
|
DPS310_SPI.cpp
|
||||||
dps310_main.cpp
|
dps310_main.cpp
|
||||||
|
Infineon_DPS310_Registers.hpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
drivers_barometer
|
drivers_barometer
|
||||||
px4_work_queue
|
px4_work_queue
|
||||||
|
|||||||
@@ -37,11 +37,12 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
SRCS
|
SRCS
|
||||||
ms5611_spi.cpp
|
|
||||||
ms5611_i2c.cpp
|
ms5611_i2c.cpp
|
||||||
|
ms5611_spi.cpp
|
||||||
ms5611.cpp
|
ms5611.cpp
|
||||||
ms5611_main.cpp
|
ms5611.h
|
||||||
MS5611.hpp
|
MS5611.hpp
|
||||||
|
ms5611_main.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
cdev
|
cdev
|
||||||
drivers__device
|
drivers__device
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
batt_smbus.cpp
|
batt_smbus.cpp
|
||||||
|
batt_smbus.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
drivers__smbus
|
drivers__smbus
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -36,5 +36,5 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
camera_capture.cpp
|
camera_capture.cpp
|
||||||
|
camera_capture.hpp
|
||||||
)
|
)
|
||||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015-2021 PX4 Development Team. All rights reserved.
|
# Copyright (c) 2015 PX4 Development Team. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -35,11 +35,14 @@ px4_add_module(
|
|||||||
MAIN camera_trigger
|
MAIN camera_trigger
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
camera_trigger.cpp
|
|
||||||
interfaces/src/camera_interface.cpp
|
interfaces/src/camera_interface.cpp
|
||||||
interfaces/src/pwm.cpp
|
interfaces/src/camera_interface.h
|
||||||
interfaces/src/seagull_map2.cpp
|
|
||||||
interfaces/src/gpio.cpp
|
interfaces/src/gpio.cpp
|
||||||
|
interfaces/src/gpio.h
|
||||||
|
interfaces/src/pwm.cpp
|
||||||
|
interfaces/src/pwm.h
|
||||||
|
interfaces/src/seagull_map2.cpp
|
||||||
|
interfaces/src/seagull_map2.h
|
||||||
|
camera_trigger.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
px4_work_queue
|
)
|
||||||
)
|
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ px4_add_module(
|
|||||||
STACK_MAIN 1200
|
STACK_MAIN 1200
|
||||||
SRCS
|
SRCS
|
||||||
DShot.cpp
|
DShot.cpp
|
||||||
|
DShot.h
|
||||||
DShotTelemetry.cpp
|
DShotTelemetry.cpp
|
||||||
|
DShotTelemetry.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
arch_io_pins
|
arch_io_pins
|
||||||
arch_dshot
|
arch_dshot
|
||||||
|
|||||||
@@ -40,13 +40,25 @@ px4_add_module(
|
|||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
-Wno-stringop-overflow # due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91707
|
-Wno-stringop-overflow # due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91707
|
||||||
SRCS
|
SRCS
|
||||||
gps.cpp
|
|
||||||
devices/src/gps_helper.cpp
|
|
||||||
devices/src/mtk.cpp
|
|
||||||
devices/src/ashtech.cpp
|
devices/src/ashtech.cpp
|
||||||
devices/src/ubx.cpp
|
devices/src/ashtech.h
|
||||||
devices/src/rtcm.cpp
|
devices/src/base_station.h
|
||||||
devices/src/emlid_reach.cpp
|
devices/src/emlid_reach.cpp
|
||||||
|
devices/src/emlid_reach.h
|
||||||
|
devices/src/femtomes.cpp
|
||||||
|
devices/src/femtomes.h
|
||||||
|
devices/src/gps_helper.cpp
|
||||||
|
devices/src/gps_helper.h
|
||||||
|
devices/src/mtk.cpp
|
||||||
|
devices/src/mtk.h
|
||||||
|
devices/src/rtcm.cpp
|
||||||
|
devices/src/rtcm.h
|
||||||
|
#devices/src/sbf.cpp
|
||||||
|
#devices/src/sbf.h
|
||||||
|
devices/src/ubx.cpp
|
||||||
|
devices/src/ubx.h
|
||||||
|
definitions.h
|
||||||
|
gps.cpp
|
||||||
MODULE_CONFIG
|
MODULE_CONFIG
|
||||||
module.yaml
|
module.yaml
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
|||||||
+1
-1
Submodule src/drivers/gps/devices updated: 8ba8d9f19c...e7f0b23f47
@@ -36,4 +36,5 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
heater.cpp
|
heater.cpp
|
||||||
|
heater.h
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -37,4 +37,6 @@ px4_add_module(
|
|||||||
SRCS
|
SRCS
|
||||||
paw3902_main.cpp
|
paw3902_main.cpp
|
||||||
PAW3902.cpp
|
PAW3902.cpp
|
||||||
|
PAW3902.hpp
|
||||||
|
PixArt_PAW3902JF_Registers.hpp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ add_custom_command(OUTPUT ${component_information_header}
|
|||||||
--output ${component_information_header}
|
--output ${component_information_header}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
generate_hashes.py
|
generate_hashes.py
|
||||||
parameters_xml
|
|
||||||
${PX4_BINARY_DIR}/params.json.xz
|
|
||||||
${component_version_json}
|
${component_version_json}
|
||||||
COMMENT "Generating component_information/hashes.h"
|
COMMENT "Generating component_information/hashes.h"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -71,30 +71,24 @@ list(REMOVE_DUPLICATES module_list)
|
|||||||
|
|
||||||
set(generated_params_dir ${PX4_BINARY_DIR}/generated_params)
|
set(generated_params_dir ${PX4_BINARY_DIR}/generated_params)
|
||||||
set(generated_serial_params_file ${generated_params_dir}/serial_params.c)
|
set(generated_serial_params_file ${generated_params_dir}/serial_params.c)
|
||||||
file(GLOB jinja_templates ${PX4_SOURCE_DIR}/Tools/serial/*.jinja)
|
|
||||||
if (px4_constrained_flash_build)
|
if(px4_constrained_flash_build)
|
||||||
set(added_arguments --constrained-flash)
|
set(added_arguments --constrained-flash)
|
||||||
endif()
|
endif()
|
||||||
if(PX4_ETHERNET)
|
|
||||||
set(added_arguments ${added_arguments} --ethernet)
|
execute_process(
|
||||||
endif()
|
|
||||||
add_custom_command(OUTPUT ${generated_serial_params_file}
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${generated_params_dir}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${generated_params_dir}
|
||||||
|
)
|
||||||
|
execute_process(
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/serial/generate_config.py
|
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/serial/generate_config.py
|
||||||
--params-file ${generated_serial_params_file}
|
--params-file ${generated_serial_params_file}
|
||||||
--serial-ports ${board_serial_ports} ${added_arguments}
|
--serial-ports ${board_serial_ports} ${added_arguments}
|
||||||
--config-files ${module_config_files} #--verbose
|
--config-files ${module_config_files} #--verbose
|
||||||
DEPENDS
|
|
||||||
${module_config_files}
|
|
||||||
${jinja_templates}
|
|
||||||
${PX4_SOURCE_DIR}/Tools/serial/generate_config.py
|
|
||||||
COMMENT "Generating serial_params.c"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(parameters_xml ${PX4_BINARY_DIR}/parameters.xml)
|
set(parameters_xml ${PX4_BINARY_DIR}/parameters.xml)
|
||||||
set(parameters_json ${PX4_BINARY_DIR}/params.json) # file name needs to be kept short to fit into url (metadata_uri)
|
set(parameters_json ${PX4_BINARY_DIR}/params.json) # file name needs to be kept short to fit into url (metadata_uri)
|
||||||
file(GLOB_RECURSE param_src_files ${PX4_SOURCE_DIR}/src/*params.c)
|
execute_process(
|
||||||
add_custom_command(OUTPUT ${parameters_xml} ${parameters_json} ${parameters_json}.xz
|
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_process_params.py
|
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_process_params.py
|
||||||
--src-path ${module_list} ${generated_params_dir}
|
--src-path ${module_list} ${generated_params_dir}
|
||||||
--xml ${parameters_xml}
|
--xml ${parameters_xml}
|
||||||
@@ -104,29 +98,12 @@ add_custom_command(OUTPUT ${parameters_xml} ${parameters_json} ${parameters_json
|
|||||||
--overrides ${PARAM_DEFAULT_OVERRIDES}
|
--overrides ${PARAM_DEFAULT_OVERRIDES}
|
||||||
--board ${PX4_BOARD}
|
--board ${PX4_BOARD}
|
||||||
#--verbose
|
#--verbose
|
||||||
DEPENDS
|
|
||||||
${param_src_files}
|
|
||||||
${generated_serial_params_file}
|
|
||||||
parameters_injected.xml
|
|
||||||
px4params/srcparser.py
|
|
||||||
px4params/srcscanner.py
|
|
||||||
px4params/jsonout.py
|
|
||||||
px4params/xmlout.py
|
|
||||||
px_process_params.py
|
|
||||||
parameters_injected.xml
|
|
||||||
COMMENT "Generating parameters.xml"
|
|
||||||
)
|
)
|
||||||
add_custom_target(parameters_xml DEPENDS ${parameters_xml})
|
|
||||||
|
|
||||||
# generate px4_parameters.hpp
|
# generate px4_parameters.hpp
|
||||||
add_custom_command(OUTPUT px4_parameters.hpp
|
execute_process(
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_generate_params.py
|
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/px_generate_params.py --xml ${parameters_xml} --dest ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
--xml ${parameters_xml} --dest ${CMAKE_CURRENT_BINARY_DIR}
|
)
|
||||||
DEPENDS
|
|
||||||
${PX4_BINARY_DIR}/parameters.xml
|
|
||||||
px_generate_params.py
|
|
||||||
templates/px4_parameters.hpp.jinja
|
|
||||||
)
|
|
||||||
|
|
||||||
set(SRCS)
|
set(SRCS)
|
||||||
if ("${CONFIG_SHMEM}" STREQUAL "1")
|
if ("${CONFIG_SHMEM}" STREQUAL "1")
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
airship_att_control_main.cpp
|
airship_att_control_main.cpp
|
||||||
|
airship_att_control.hpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
px4_work_queue
|
px4_work_queue
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
px4_add_library(AngularVelocityControl
|
px4_add_library(AngularVelocityControl
|
||||||
AngularVelocityControl.cpp
|
AngularVelocityControl.cpp
|
||||||
|
AngularVelocityControl.hpp
|
||||||
)
|
)
|
||||||
target_compile_options(AngularVelocityControl PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
target_compile_options(AngularVelocityControl PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||||
target_include_directories(AngularVelocityControl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(AngularVelocityControl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|||||||
@@ -35,8 +35,9 @@ px4_add_module(
|
|||||||
MODULE modules__battery_status
|
MODULE modules__battery_status
|
||||||
MAIN battery_status
|
MAIN battery_status
|
||||||
SRCS
|
SRCS
|
||||||
battery_status.cpp
|
|
||||||
analog_battery.cpp
|
analog_battery.cpp
|
||||||
|
analog_battery.h
|
||||||
|
battery_status.cpp
|
||||||
MODULE_CONFIG
|
MODULE_CONFIG
|
||||||
module.yaml
|
module.yaml
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
|||||||
@@ -40,20 +40,37 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
accelerometer_calibration.cpp
|
accelerometer_calibration.cpp
|
||||||
|
accelerometer_calibration.h
|
||||||
airspeed_calibration.cpp
|
airspeed_calibration.cpp
|
||||||
|
airspeed_calibration.h
|
||||||
|
calibration_messages.h
|
||||||
calibration_routines.cpp
|
calibration_routines.cpp
|
||||||
Commander.cpp
|
calibration_routines.h
|
||||||
commander_helper.cpp
|
commander_helper.cpp
|
||||||
|
commander_helper.h
|
||||||
|
Commander.cpp
|
||||||
|
Commander.hpp
|
||||||
esc_calibration.cpp
|
esc_calibration.cpp
|
||||||
|
esc_calibration.h
|
||||||
factory_calibration_storage.cpp
|
factory_calibration_storage.cpp
|
||||||
|
factory_calibration_storage.h
|
||||||
gyro_calibration.cpp
|
gyro_calibration.cpp
|
||||||
|
gyro_calibration.h
|
||||||
level_calibration.cpp
|
level_calibration.cpp
|
||||||
|
level_calibration.h
|
||||||
lm_fit.cpp
|
lm_fit.cpp
|
||||||
|
lm_fit.hpp
|
||||||
mag_calibration.cpp
|
mag_calibration.cpp
|
||||||
|
mag_calibration.h
|
||||||
ManualControl.cpp
|
ManualControl.cpp
|
||||||
|
ManualControl.hpp
|
||||||
|
px4_custom_mode.h
|
||||||
rc_calibration.cpp
|
rc_calibration.cpp
|
||||||
|
rc_calibration.h
|
||||||
state_machine_helper.cpp
|
state_machine_helper.cpp
|
||||||
|
state_machine_helper.h
|
||||||
worker_thread.cpp
|
worker_thread.cpp
|
||||||
|
worker_thread.hpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
circuit_breaker
|
circuit_breaker
|
||||||
failure_detector
|
failure_detector
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ px4_add_module(
|
|||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
SRCS
|
SRCS
|
||||||
dataman.cpp
|
dataman.cpp
|
||||||
|
dataman.h
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -32,7 +32,9 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
px4_add_library(EKF2Utility
|
px4_add_library(EKF2Utility
|
||||||
|
InnovationLpf.hpp
|
||||||
PreFlightChecker.cpp
|
PreFlightChecker.cpp
|
||||||
|
PreFlightChecker.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(EKF2Utility
|
target_include_directories(EKF2Utility
|
||||||
|
|||||||
@@ -37,7 +37,10 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
rc_loss_alarm.cpp
|
rc_loss_alarm.cpp
|
||||||
|
rc_loss_alarm.h
|
||||||
send_event.cpp
|
send_event.cpp
|
||||||
|
send_event.h
|
||||||
set_leds.cpp
|
set_leds.cpp
|
||||||
status_display.cpp
|
status_display.cpp
|
||||||
|
status_display.h
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -34,14 +34,18 @@ px4_add_module(
|
|||||||
MODULE modules__fw_att_control
|
MODULE modules__fw_att_control
|
||||||
MAIN fw_att_control
|
MAIN fw_att_control
|
||||||
SRCS
|
SRCS
|
||||||
|
ecl_controller.cpp
|
||||||
|
ecl_controller.h
|
||||||
|
ecl_pitch_controller.cpp
|
||||||
|
ecl_pitch_controller.h
|
||||||
|
ecl_roll_controller.cpp
|
||||||
|
ecl_roll_controller.h
|
||||||
|
ecl_wheel_controller.cpp
|
||||||
|
ecl_wheel_controller.h
|
||||||
|
ecl_yaw_controller.cpp
|
||||||
|
ecl_yaw_controller.h
|
||||||
FixedwingAttitudeControl.cpp
|
FixedwingAttitudeControl.cpp
|
||||||
FixedwingAttitudeControl.hpp
|
FixedwingAttitudeControl.hpp
|
||||||
|
|
||||||
ecl_controller.cpp
|
|
||||||
ecl_pitch_controller.cpp
|
|
||||||
ecl_roll_controller.cpp
|
|
||||||
ecl_wheel_controller.cpp
|
|
||||||
ecl_yaw_controller.cpp
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
px4_work_queue
|
px4_work_queue
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -32,6 +32,9 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
px4_add_library(launchdetection
|
px4_add_library(launchdetection
|
||||||
LaunchDetector.cpp
|
|
||||||
CatapultLaunchMethod.cpp
|
CatapultLaunchMethod.cpp
|
||||||
)
|
CatapultLaunchMethod.h
|
||||||
|
LaunchDetector.cpp
|
||||||
|
LaunchDetector.h
|
||||||
|
LaunchMethod.h
|
||||||
|
)
|
||||||
|
|||||||
@@ -35,14 +35,21 @@ px4_add_module(
|
|||||||
MAIN land_detector
|
MAIN land_detector
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
|
AirshipLandDetector.cpp
|
||||||
|
AirshipLandDetector.h
|
||||||
|
FixedwingLandDetector.cpp
|
||||||
|
FixedwingLandDetector.h
|
||||||
land_detector_main.cpp
|
land_detector_main.cpp
|
||||||
LandDetector.cpp
|
LandDetector.cpp
|
||||||
|
LandDetector.h
|
||||||
MulticopterLandDetector.cpp
|
MulticopterLandDetector.cpp
|
||||||
FixedwingLandDetector.cpp
|
MulticopterLandDetector.h
|
||||||
VtolLandDetector.cpp
|
|
||||||
RoverLandDetector.cpp
|
RoverLandDetector.cpp
|
||||||
AirshipLandDetector.cpp
|
RoverLandDetector.h
|
||||||
|
VtolLandDetector.cpp
|
||||||
|
VtolLandDetector.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
hysteresis
|
hysteresis
|
||||||
|
px4_work_queue
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -36,9 +36,11 @@ px4_add_module(
|
|||||||
MAIN landing_target_estimator
|
MAIN landing_target_estimator
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
|
KalmanFilter.cpp
|
||||||
|
KalmanFilter.h
|
||||||
landing_target_estimator_main.cpp
|
landing_target_estimator_main.cpp
|
||||||
LandingTargetEstimator.cpp
|
LandingTargetEstimator.cpp
|
||||||
KalmanFilter.cpp
|
LandingTargetEstimator.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -37,16 +37,17 @@ px4_add_module(
|
|||||||
STACK_MAIN 5700
|
STACK_MAIN 5700
|
||||||
STACK_MAX 3700
|
STACK_MAX 3700
|
||||||
SRCS
|
SRCS
|
||||||
BlockLocalPositionEstimator.cpp
|
|
||||||
sensors/flow.cpp
|
|
||||||
sensors/lidar.cpp
|
|
||||||
sensors/sonar.cpp
|
|
||||||
sensors/gps.cpp
|
|
||||||
sensors/baro.cpp
|
sensors/baro.cpp
|
||||||
sensors/vision.cpp
|
sensors/flow.cpp
|
||||||
sensors/mocap.cpp
|
sensors/gps.cpp
|
||||||
sensors/land.cpp
|
sensors/land.cpp
|
||||||
sensors/landing_target.cpp
|
sensors/landing_target.cpp
|
||||||
|
sensors/lidar.cpp
|
||||||
|
sensors/mocap.cpp
|
||||||
|
sensors/sonar.cpp
|
||||||
|
sensors/vision.cpp
|
||||||
|
BlockLocalPositionEstimator.cpp
|
||||||
|
BlockLocalPositionEstimator.hpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
controllib
|
controllib
|
||||||
git_ecl
|
git_ecl
|
||||||
|
|||||||
@@ -38,13 +38,21 @@ px4_add_module(
|
|||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
SRCS
|
SRCS
|
||||||
logged_topics.cpp
|
|
||||||
logger.cpp
|
|
||||||
log_writer.cpp
|
|
||||||
log_writer_file.cpp
|
log_writer_file.cpp
|
||||||
|
log_writer_file.h
|
||||||
log_writer_mavlink.cpp
|
log_writer_mavlink.cpp
|
||||||
|
log_writer_mavlink.h
|
||||||
|
log_writer.cpp
|
||||||
|
log_writer.h
|
||||||
|
logged_topics.cpp
|
||||||
|
logged_topics.h
|
||||||
|
logger.cpp
|
||||||
|
logger.h
|
||||||
|
messages.h
|
||||||
util.cpp
|
util.cpp
|
||||||
|
util.h
|
||||||
watchdog.cpp
|
watchdog.cpp
|
||||||
|
watchdog.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
version
|
version
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -37,20 +37,35 @@ px4_add_module(
|
|||||||
MODULE modules__navigator
|
MODULE modules__navigator
|
||||||
MAIN navigator
|
MAIN navigator
|
||||||
SRCS
|
SRCS
|
||||||
|
enginefailure.cpp
|
||||||
|
enginefailure.h
|
||||||
|
follow_target.cpp
|
||||||
|
follow_target.h
|
||||||
|
geofence.cpp
|
||||||
|
geofence.h
|
||||||
|
gpsfailure.cpp
|
||||||
|
gpsfailure.h
|
||||||
|
land.cpp
|
||||||
|
land.h
|
||||||
|
loiter.cpp
|
||||||
|
loiter.h
|
||||||
|
mission_block.cpp
|
||||||
|
mission_block.h
|
||||||
|
mission_feasibility_checker.cpp
|
||||||
|
mission_feasibility_checker.h
|
||||||
|
mission.cpp
|
||||||
|
mission.h
|
||||||
|
navigation.h
|
||||||
navigator_main.cpp
|
navigator_main.cpp
|
||||||
navigator_mode.cpp
|
navigator_mode.cpp
|
||||||
mission_block.cpp
|
navigator_mode.h
|
||||||
mission.cpp
|
navigator.h
|
||||||
loiter.cpp
|
|
||||||
rtl.cpp
|
|
||||||
takeoff.cpp
|
|
||||||
land.cpp
|
|
||||||
precland.cpp
|
precland.cpp
|
||||||
mission_feasibility_checker.cpp
|
precland.h
|
||||||
geofence.cpp
|
rtl.cpp
|
||||||
enginefailure.cpp
|
rtl.h
|
||||||
gpsfailure.cpp
|
takeoff.cpp
|
||||||
follow_target.cpp
|
takeoff.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
git_ecl
|
git_ecl
|
||||||
ecl_geo
|
ecl_geo
|
||||||
@@ -59,4 +74,4 @@ px4_add_module(
|
|||||||
motion_planning
|
motion_planning
|
||||||
)
|
)
|
||||||
|
|
||||||
px4_add_functional_gtest(SRC RangeRTLTest.cpp LINKLIBS modules__navigator modules__dataman)
|
px4_add_functional_gtest(SRC RangeRTLTest.cpp LINKLIBS modules__navigator modules__dataman)
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ add_library(px4iofirmware
|
|||||||
adc.c
|
adc.c
|
||||||
controls.c
|
controls.c
|
||||||
mixer.cpp
|
mixer.cpp
|
||||||
|
protocol.h
|
||||||
px4io.c
|
px4io.c
|
||||||
|
px4io.h
|
||||||
registers.c
|
registers.c
|
||||||
safety.c
|
safety.c
|
||||||
serial.c
|
serial.c
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ px4_add_module(
|
|||||||
MODULE modules__sensors
|
MODULE modules__sensors
|
||||||
MAIN sensors
|
MAIN sensors
|
||||||
SRCS
|
SRCS
|
||||||
voted_sensors_update.cpp
|
|
||||||
sensors.cpp
|
sensors.cpp
|
||||||
|
voted_sensors_update.cpp
|
||||||
|
voted_sensors_update.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
airspeed
|
airspeed
|
||||||
conversion
|
conversion
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ endif()
|
|||||||
configure_file(simulator_config.h.in simulator_config.h @ONLY)
|
configure_file(simulator_config.h.in simulator_config.h @ONLY)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
set(SIMULATOR_SRCS simulator.cpp)
|
set(SIMULATOR_EXTRA_SRCS)
|
||||||
if (NOT ${PX4_PLATFORM} STREQUAL "qurt")
|
if (NOT ${PX4_PLATFORM} STREQUAL "qurt")
|
||||||
list(APPEND SIMULATOR_SRCS
|
list(APPEND SIMULATOR_EXTRA_SRCS
|
||||||
simulator_mavlink.cpp)
|
simulator_mavlink.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -63,7 +63,9 @@ px4_add_module(
|
|||||||
INCLUDES
|
INCLUDES
|
||||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||||
SRCS
|
SRCS
|
||||||
${SIMULATOR_SRCS}
|
${SIMULATOR_EXTRA_SRCS}
|
||||||
|
simulator.cpp
|
||||||
|
simulator.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
git_mavlink_v2
|
git_mavlink_v2
|
||||||
conversion
|
conversion
|
||||||
|
|||||||
@@ -35,12 +35,20 @@ px4_add_module(
|
|||||||
MODULE modules__temperature_compensation
|
MODULE modules__temperature_compensation
|
||||||
MAIN temperature_compensation
|
MAIN temperature_compensation
|
||||||
SRCS
|
SRCS
|
||||||
TemperatureCompensationModule.cpp
|
|
||||||
TemperatureCompensation.cpp
|
TemperatureCompensation.cpp
|
||||||
|
TemperatureCompensation.h
|
||||||
|
TemperatureCompensationModule.cpp
|
||||||
|
TemperatureCompensationModule.h
|
||||||
temperature_calibration/accel.cpp
|
temperature_calibration/accel.cpp
|
||||||
|
temperature_calibration/accel.h
|
||||||
temperature_calibration/baro.cpp
|
temperature_calibration/baro.cpp
|
||||||
|
temperature_calibration/baro.h
|
||||||
|
temperature_calibration/common.h
|
||||||
temperature_calibration/gyro.cpp
|
temperature_calibration/gyro.cpp
|
||||||
|
temperature_calibration/gyro.h
|
||||||
|
temperature_calibration/polyfit.hpp
|
||||||
temperature_calibration/task.cpp
|
temperature_calibration/task.cpp
|
||||||
|
temperature_calibration/temperature_calibration.h
|
||||||
DEPENDS
|
DEPENDS
|
||||||
mathlib
|
mathlib
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,8 +33,8 @@
|
|||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE modules__uuv_att_control
|
MODULE modules__uuv_att_control
|
||||||
MAIN uuv_att_control
|
MAIN uuv_att_control
|
||||||
STACK_MAIN 1200
|
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
uuv_att_control.cpp
|
uuv_att_control.cpp
|
||||||
|
uuv_att_control.hpp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,8 +33,8 @@
|
|||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE modules__uuv_pos_control
|
MODULE modules__uuv_pos_control
|
||||||
MAIN uuv_pos_control
|
MAIN uuv_pos_control
|
||||||
STACK_MAIN 1200
|
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
uuv_pos_control.cpp
|
uuv_pos_control.cpp
|
||||||
|
uuv_pos_control.hpp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -35,16 +35,23 @@ px4_add_module(
|
|||||||
MAIN vmount
|
MAIN vmount
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
SRCS
|
SRCS
|
||||||
input.cpp
|
common.h
|
||||||
input_mavlink.cpp
|
input_mavlink.cpp
|
||||||
|
input_mavlink.h
|
||||||
input_rc.cpp
|
input_rc.cpp
|
||||||
|
input_rc.h
|
||||||
input_test.cpp
|
input_test.cpp
|
||||||
output.cpp
|
input_test.h
|
||||||
|
input.cpp
|
||||||
|
input.h
|
||||||
output_mavlink.cpp
|
output_mavlink.cpp
|
||||||
|
output_mavlink.h
|
||||||
output_rc.cpp
|
output_rc.cpp
|
||||||
|
output_rc.h
|
||||||
|
output.cpp
|
||||||
|
output.h
|
||||||
vmount.cpp
|
vmount.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
git_ecl
|
git_ecl
|
||||||
ecl_geo
|
ecl_geo
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -34,10 +34,14 @@ px4_add_module(
|
|||||||
MODULE modules__vtol_att_control
|
MODULE modules__vtol_att_control
|
||||||
MAIN vtol_att_control
|
MAIN vtol_att_control
|
||||||
SRCS
|
SRCS
|
||||||
vtol_att_control_main.cpp
|
|
||||||
tiltrotor.cpp
|
|
||||||
vtol_type.cpp
|
|
||||||
tailsitter.cpp
|
|
||||||
standard.cpp
|
standard.cpp
|
||||||
|
standard.h
|
||||||
|
tailsitter.cpp
|
||||||
|
tailsitter.h
|
||||||
|
tiltrotor.cpp
|
||||||
|
tiltrotor.h
|
||||||
|
vtol_att_control_main.cpp
|
||||||
|
vtol_att_control_main.h
|
||||||
|
vtol_type.cpp
|
||||||
|
vtol_type.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user