2015-09-10 14:57:54 -03:00
|
|
|
include(nuttx/px4_impl_nuttx)
|
|
|
|
|
2015-10-03 15:51:12 -03:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake)
|
2015-09-11 00:43:59 -03:00
|
|
|
|
2015-11-30 21:44:36 -04:00
|
|
|
set(config_uavcan_num_ifaces 2)
|
|
|
|
|
2015-09-11 00:43:59 -03:00
|
|
|
set(config_module_list
|
|
|
|
#
|
|
|
|
# Board support modules
|
|
|
|
#
|
|
|
|
drivers/device
|
|
|
|
drivers/stm32
|
|
|
|
drivers/stm32/adc
|
|
|
|
drivers/stm32/tone_alarm
|
|
|
|
drivers/led
|
|
|
|
drivers/px4fmu
|
|
|
|
drivers/px4io
|
|
|
|
drivers/boards/px4fmu-v2
|
|
|
|
drivers/rgbled
|
|
|
|
drivers/mpu6000
|
|
|
|
drivers/mpu9250
|
|
|
|
drivers/lsm303d
|
|
|
|
drivers/l3gd20
|
|
|
|
drivers/hmc5883
|
|
|
|
drivers/ms5611
|
2015-12-28 09:26:19 -04:00
|
|
|
#drivers/mb12xx
|
2015-10-24 05:35:37 -03:00
|
|
|
drivers/srf02
|
2015-09-11 00:43:59 -03:00
|
|
|
drivers/sf0x
|
|
|
|
drivers/ll40ls
|
|
|
|
drivers/trone
|
|
|
|
drivers/gps
|
|
|
|
drivers/pwm_out_sim
|
2015-12-26 09:43:27 -04:00
|
|
|
#drivers/hott
|
|
|
|
#drivers/hott/hott_telemetry
|
|
|
|
#drivers/hott/hott_sensors
|
2015-09-11 00:43:59 -03:00
|
|
|
drivers/blinkm
|
|
|
|
drivers/airspeed
|
|
|
|
drivers/ets_airspeed
|
|
|
|
drivers/meas_airspeed
|
|
|
|
drivers/frsky_telemetry
|
|
|
|
modules/sensors
|
2015-10-24 06:58:30 -03:00
|
|
|
#drivers/mkblctrl
|
2015-09-11 00:43:59 -03:00
|
|
|
drivers/px4flow
|
2016-04-14 12:31:02 -03:00
|
|
|
#drivers/oreoled
|
2015-09-11 00:43:59 -03:00
|
|
|
drivers/gimbal
|
|
|
|
drivers/pwm_input
|
|
|
|
drivers/camera_trigger
|
2015-12-26 09:43:27 -04:00
|
|
|
drivers/bst
|
2016-03-17 07:08:55 -03:00
|
|
|
drivers/snapdragon_rc_pwm
|
2016-03-19 03:27:09 -03:00
|
|
|
drivers/lis3mdl
|
2016-05-06 16:07:34 -03:00
|
|
|
drivers/bmi160
|
2015-09-11 00:43:59 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# System commands
|
|
|
|
#
|
|
|
|
systemcmds/bl_update
|
|
|
|
systemcmds/mixer
|
|
|
|
systemcmds/param
|
|
|
|
systemcmds/perf
|
|
|
|
systemcmds/pwm
|
|
|
|
systemcmds/esc_calib
|
|
|
|
systemcmds/reboot
|
2015-10-24 06:58:30 -03:00
|
|
|
#systemcmds/topic_listener
|
2015-09-11 00:43:59 -03:00
|
|
|
systemcmds/top
|
|
|
|
systemcmds/config
|
|
|
|
systemcmds/nshterm
|
|
|
|
systemcmds/mtd
|
|
|
|
systemcmds/dumpfile
|
|
|
|
systemcmds/ver
|
|
|
|
|
|
|
|
#
|
|
|
|
# General system control
|
|
|
|
#
|
|
|
|
modules/commander
|
2016-02-29 02:54:31 -04:00
|
|
|
modules/load_mon
|
2015-09-11 00:43:59 -03:00
|
|
|
modules/navigator
|
|
|
|
modules/mavlink
|
|
|
|
modules/gpio_led
|
2015-10-03 15:51:12 -03:00
|
|
|
modules/uavcan
|
2015-09-11 00:43:59 -03:00
|
|
|
modules/land_detector
|
|
|
|
|
|
|
|
#
|
|
|
|
# Estimation modules (EKF/ SO3 / other filters)
|
|
|
|
#
|
|
|
|
modules/attitude_estimator_q
|
|
|
|
modules/ekf_att_pos_estimator
|
|
|
|
modules/position_estimator_inav
|
2016-04-30 05:50:24 -03:00
|
|
|
modules/local_position_estimator
|
2015-09-11 00:43:59 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Vehicle Control
|
|
|
|
#
|
|
|
|
# modules/segway # XXX Needs GCC 4.7 fix
|
|
|
|
modules/fw_pos_control_l1
|
|
|
|
modules/fw_att_control
|
|
|
|
modules/mc_att_control
|
|
|
|
modules/mc_pos_control
|
|
|
|
modules/vtol_att_control
|
|
|
|
|
|
|
|
#
|
|
|
|
# Logging
|
|
|
|
#
|
|
|
|
modules/sdlog2
|
|
|
|
|
|
|
|
#
|
|
|
|
# Library modules
|
|
|
|
#
|
2015-09-13 19:55:48 -03:00
|
|
|
modules/param
|
2015-09-11 00:43:59 -03:00
|
|
|
modules/systemlib
|
|
|
|
modules/systemlib/mixer
|
|
|
|
modules/uORB
|
|
|
|
modules/dataman
|
|
|
|
|
|
|
|
#
|
|
|
|
# Libraries
|
|
|
|
#
|
2016-04-14 15:07:28 -03:00
|
|
|
lib/controllib
|
2015-09-11 00:43:59 -03:00
|
|
|
lib/mathlib
|
|
|
|
lib/mathlib/math/filter
|
|
|
|
lib/ecl
|
|
|
|
lib/external_lgpl
|
|
|
|
lib/geo
|
|
|
|
lib/geo_lookup
|
|
|
|
lib/conversion
|
|
|
|
lib/launchdetection
|
2015-11-06 17:48:44 -04:00
|
|
|
lib/terrain_estimation
|
|
|
|
lib/runway_takeoff
|
2015-12-11 05:57:41 -04:00
|
|
|
lib/tailsitter_recovery
|
2016-05-03 05:03:28 -03:00
|
|
|
lib/DriverFramework/framework
|
2015-09-11 00:43:59 -03:00
|
|
|
platforms/nuttx
|
|
|
|
|
|
|
|
# had to add for cmake, not sure why wasn't in original config
|
|
|
|
platforms/common
|
|
|
|
platforms/nuttx/px4_layer
|
|
|
|
|
|
|
|
#
|
|
|
|
# OBC challenge
|
|
|
|
#
|
2015-12-28 09:26:19 -04:00
|
|
|
#modules/bottle_drop
|
2015-09-11 00:43:59 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Rover apps
|
|
|
|
#
|
2016-04-14 12:31:02 -03:00
|
|
|
#examples/rover_steering_control
|
2015-09-11 00:43:59 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Demo apps
|
|
|
|
#
|
|
|
|
#examples/math_demo
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/px4_simple_app
|
2016-04-14 12:31:02 -03:00
|
|
|
#examples/px4_simple_app
|
2015-09-11 00:43:59 -03:00
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/daemon
|
|
|
|
#examples/px4_daemon_app
|
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/debug_values
|
|
|
|
#examples/px4_mavlink_debug
|
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/example_fixedwing_control
|
|
|
|
#examples/fixedwing_control
|
|
|
|
|
|
|
|
# Hardware test
|
|
|
|
#examples/hwtest
|
|
|
|
)
|
|
|
|
|
|
|
|
set(config_extra_builtin_cmds
|
2015-09-12 01:24:16 -03:00
|
|
|
serdis
|
|
|
|
sercon
|
2015-09-11 00:43:59 -03:00
|
|
|
)
|
2015-09-10 14:57:54 -03:00
|
|
|
|
2015-09-12 06:26:31 -03:00
|
|
|
set(config_io_board
|
|
|
|
px4io-v2
|
|
|
|
)
|
|
|
|
|
|
|
|
set(config_extra_libs
|
2015-10-14 02:33:08 -03:00
|
|
|
uavcan
|
|
|
|
uavcan_stm32_driver
|
2015-09-12 06:26:31 -03:00
|
|
|
)
|
|
|
|
|
|
|
|
set(config_io_extra_libs
|
|
|
|
)
|
|
|
|
|
2015-09-11 00:43:59 -03:00
|
|
|
add_custom_target(sercon)
|
|
|
|
set_target_properties(sercon PROPERTIES
|
2016-04-14 14:36:36 -03:00
|
|
|
PRIORITY "SCHED_PRIORITY_DEFAULT"
|
|
|
|
MAIN "sercon" STACK_MAIN "2048")
|
2015-09-10 14:57:54 -03:00
|
|
|
|
2015-09-11 00:43:59 -03:00
|
|
|
add_custom_target(serdis)
|
|
|
|
set_target_properties(serdis PROPERTIES
|
2016-04-14 14:36:36 -03:00
|
|
|
PRIORITY "SCHED_PRIORITY_DEFAULT"
|
|
|
|
MAIN "serdis" STACK_MAIN "2048")
|