mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
- this is a new module for temperature compensation that consolidates the functionality previously handled in the sensors module (calculating runtime thermal corrections) and the events module (online thermal calibration) - by collecting this functionality into a single module we can optionally disable it on systems where it's not used and save some flash (if disabled at build time) or memory (disabled at run time)
105 lines
2.3 KiB
CMake
105 lines
2.3 KiB
CMake
|
|
px4_add_board(
|
|
PLATFORM posix
|
|
VENDOR px4
|
|
MODEL sitl
|
|
LABEL default
|
|
TESTING
|
|
DRIVERS
|
|
#barometer # all available barometer drivers
|
|
#batt_smbus
|
|
camera_capture
|
|
camera_trigger
|
|
#differential_pressure # all available differential pressure drivers
|
|
#distance_sensor # all available distance sensor drivers
|
|
gps
|
|
#imu # all available imu drivers
|
|
#magnetometer # all available magnetometer drivers
|
|
pwm_out_sim
|
|
#telemetry # all available telemetry drivers
|
|
tone_alarm
|
|
#uavcan
|
|
MODULES
|
|
airspeed_selector
|
|
attitude_estimator_q
|
|
camera_feedback
|
|
commander
|
|
dataman
|
|
ekf2
|
|
events
|
|
fw_att_control
|
|
fw_pos_control_l1
|
|
land_detector
|
|
landing_target_estimator
|
|
#load_mon
|
|
local_position_estimator
|
|
logger
|
|
mavlink
|
|
mc_att_control
|
|
mc_pos_control
|
|
mc_rate_control
|
|
navigator
|
|
rc_update
|
|
replay
|
|
rover_pos_control
|
|
sensors
|
|
#sih
|
|
simulator
|
|
temperature_compensation
|
|
vmount
|
|
vtol_att_control
|
|
SYSTEMCMDS
|
|
#config
|
|
#dumpfile
|
|
dyn
|
|
esc_calib
|
|
led_control
|
|
mixer
|
|
motor_ramp
|
|
motor_test
|
|
#mtd
|
|
#nshterm
|
|
param
|
|
perf
|
|
pwm
|
|
reboot
|
|
sd_bench
|
|
shutdown
|
|
tests # tests and test runner
|
|
#top
|
|
topic_listener
|
|
tune_control
|
|
ver
|
|
work_queue
|
|
EXAMPLES
|
|
bottle_drop # OBC challenge
|
|
dyn_hello # dynamically loading modules example
|
|
fixedwing_control # Tutorial code from https://px4.io/dev/example_fixedwing_control
|
|
hello
|
|
#hwtest # Hardware test
|
|
#matlab_csv_serial
|
|
px4_mavlink_debug # Tutorial code from http://dev.px4.io/en/debug/debug_values.html
|
|
px4_simple_app # Tutorial code from http://dev.px4.io/en/apps/hello_sky.html
|
|
rover_steering_control # Rover example app
|
|
uuv_example_app
|
|
)
|
|
|
|
set(config_sitl_viewer jmavsim CACHE STRING "viewer for sitl")
|
|
set_property(CACHE config_sitl_viewer PROPERTY STRINGS "jmavsim;none")
|
|
|
|
set(config_sitl_debugger disable CACHE STRING "debugger for sitl")
|
|
set_property(CACHE config_sitl_debugger PROPERTY STRINGS "disable;gdb;lldb")
|
|
|
|
# If the environment variable 'replay' is defined, we are building with replay
|
|
# support. In this case, we enable the orb publisher rules.
|
|
set(REPLAY_FILE "$ENV{replay}")
|
|
if(REPLAY_FILE)
|
|
message(STATUS "Building with uorb publisher rules support")
|
|
add_definitions(-DORB_USE_PUBLISHER_RULES)
|
|
|
|
message(STATUS "Building without lockstep for replay")
|
|
set(ENABLE_LOCKSTEP_SCHEDULER no)
|
|
else()
|
|
set(ENABLE_LOCKSTEP_SCHEDULER yes)
|
|
endif()
|