px4-firmware/boards/px4/sitl/default.cmake

116 lines
2.5 KiB
CMake
Raw Normal View History

2018-11-16 13:52:37 -04:00
px4_add_board(
PLATFORM posix
VENDOR px4
MODEL sitl
ROMFSROOT px4fmu_common
2018-11-16 13:52:37 -04:00
LABEL default
EMBEDDED_METADATA parameters
2018-11-16 13:52:37 -04:00
TESTING
DRIVERS
#barometer # all available barometer drivers
#batt_smbus
camera_capture
2018-11-16 13:52:37 -04:00
camera_trigger
#differential_pressure # all available differential pressure drivers
#distance_sensor # all available distance sensor drivers
2018-11-16 13:52:37 -04:00
gps
#imu # all available imu drivers
#magnetometer # all available magnetometer drivers
#protocol_splitter
2018-11-16 13:52:37 -04:00
pwm_out_sim
rpm/rpm_simulator
2018-11-16 13:52:37 -04:00
#telemetry # all available telemetry drivers
tone_alarm
2018-12-01 15:00:46 -04:00
#uavcan
2018-11-16 13:52:37 -04:00
MODULES
airship_att_control
airspeed_selector
2018-11-16 13:52:37 -04:00
attitude_estimator_q
camera_feedback
commander
dataman
ekf2
events
flight_mode_manager
2018-11-16 13:52:37 -04:00
fw_att_control
fw_pos_control_l1
land_detector
landing_target_estimator
load_mon
2018-11-16 13:52:37 -04:00
local_position_estimator
logger
mavlink
mc_att_control
mc_hover_thrust_estimator
2018-11-16 13:52:37 -04:00
mc_pos_control
mc_rate_control
#micrortps_bridge
2018-11-16 13:52:37 -04:00
navigator
rc_update
2018-11-24 12:56:18 -04:00
replay
rover_pos_control
2018-11-16 13:52:37 -04:00
sensors
#sih
2018-11-16 13:52:37 -04:00
simulator
temperature_compensation
uuv_att_control
vmount
2018-11-16 13:52:37 -04:00
vtol_att_control
SYSTEMCMDS
#dumpfile
dyn
esc_calib
failure
2018-11-16 13:52:37 -04:00
led_control
2020-11-20 15:41:51 -04:00
#mft
2018-11-16 13:52:37 -04:00
mixer
motor_ramp
motor_test
2018-11-16 13:52:37 -04:00
#mtd
#nshterm
param
perf
pwm
sd_bench
shutdown
system_time
2018-11-16 13:52:37 -04:00
tests # tests and test runner
#top
2018-11-16 13:52:37 -04:00
topic_listener
tune_control
ver
work_queue
2018-11-16 13:52:37 -04:00
EXAMPLES
dyn_hello # dynamically loading modules example
fake_magnetometer
2018-11-16 13:52:37 -04:00
fixedwing_control # Tutorial code from https://px4.io/dev/example_fixedwing_control
hello
2018-11-16 13:52:37 -04:00
#hwtest # Hardware test
#matlab_csv_serial
2019-03-12 19:33:27 -03:00
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
2018-11-16 13:52:37 -04:00
rover_steering_control # Rover example app
uuv_example_app
work_item
2018-11-16 13:52:37 -04:00
)
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")
2018-11-16 13:52:37 -04:00
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()