mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
RPi2: fuse mainapp/common and navio2
We currently only support Navio2, so let's fuse the two configurations.
This commit is contained in:
3
Makefile
3
Makefile
@@ -221,9 +221,6 @@ posix_rpi2_cross:
|
|||||||
posix_bebop_default:
|
posix_bebop_default:
|
||||||
$(call cmake-build,$@)
|
$(call cmake-build,$@)
|
||||||
|
|
||||||
posix_navio2_release:
|
|
||||||
$(call cmake-build,$@)
|
|
||||||
|
|
||||||
posix: posix_sitl_default
|
posix: posix_sitl_default
|
||||||
|
|
||||||
broadcast: posix_sitl_broadcast
|
broadcast: posix_sitl_broadcast
|
||||||
|
|||||||
@@ -1,114 +0,0 @@
|
|||||||
include(posix/px4_impl_posix)
|
|
||||||
|
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake)
|
|
||||||
|
|
||||||
set(CMAKE_PROGRAM_PATH
|
|
||||||
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
|
||||||
${CMAKE_PROGRAM_PATH}
|
|
||||||
)
|
|
||||||
|
|
||||||
# This definition allows to differentiate if this just the usual POSIX build
|
|
||||||
# or if it is for the RPi.
|
|
||||||
add_definitions(
|
|
||||||
-D__PX4_POSIX_RPI2
|
|
||||||
-D__LINUX
|
|
||||||
)
|
|
||||||
|
|
||||||
set(config_module_list
|
|
||||||
#
|
|
||||||
# Board support modules
|
|
||||||
#
|
|
||||||
drivers/device
|
|
||||||
modules/sensors
|
|
||||||
platforms/posix/drivers/df_mpu9250_wrapper
|
|
||||||
platforms/posix/drivers/df_lsm9ds1_wrapper
|
|
||||||
platforms/posix/drivers/df_ms5611_wrapper
|
|
||||||
platforms/posix/drivers/df_hmc5883_wrapper
|
|
||||||
platforms/posix/drivers/df_trone_wrapper
|
|
||||||
platforms/posix/drivers/df_isl29501_wrapper
|
|
||||||
|
|
||||||
#
|
|
||||||
# System commands
|
|
||||||
#
|
|
||||||
systemcmds/param
|
|
||||||
systemcmds/mixer
|
|
||||||
systemcmds/ver
|
|
||||||
systemcmds/esc_calib
|
|
||||||
systemcmds/topic_listener
|
|
||||||
systemcmds/perf
|
|
||||||
|
|
||||||
#
|
|
||||||
# Estimation modules (EKF/ SO3 / other filters)
|
|
||||||
#
|
|
||||||
#modules/attitude_estimator_ekf
|
|
||||||
modules/ekf_att_pos_estimator
|
|
||||||
modules/attitude_estimator_q
|
|
||||||
modules/position_estimator_inav
|
|
||||||
modules/local_position_estimator
|
|
||||||
modules/ekf2
|
|
||||||
|
|
||||||
#
|
|
||||||
# Vehicle Control
|
|
||||||
#
|
|
||||||
modules/mc_att_control
|
|
||||||
modules/mc_pos_control
|
|
||||||
modules/fw_att_control
|
|
||||||
modules/fw_pos_control_l1
|
|
||||||
modules/vtol_att_control
|
|
||||||
|
|
||||||
#
|
|
||||||
# Library modules
|
|
||||||
#
|
|
||||||
modules/sdlog2
|
|
||||||
modules/logger
|
|
||||||
modules/commander
|
|
||||||
modules/load_mon
|
|
||||||
modules/param
|
|
||||||
modules/systemlib
|
|
||||||
modules/systemlib/mixer
|
|
||||||
modules/uORB
|
|
||||||
modules/dataman
|
|
||||||
modules/land_detector
|
|
||||||
modules/navigator
|
|
||||||
modules/mavlink
|
|
||||||
|
|
||||||
#
|
|
||||||
# PX4 drivers
|
|
||||||
#
|
|
||||||
drivers/gps
|
|
||||||
drivers/navio_sysfs_rc_in
|
|
||||||
drivers/navio_sysfs_pwm_out
|
|
||||||
|
|
||||||
#
|
|
||||||
# Libraries
|
|
||||||
#
|
|
||||||
lib/controllib
|
|
||||||
lib/mathlib
|
|
||||||
lib/mathlib/math/filter
|
|
||||||
lib/geo
|
|
||||||
lib/ecl
|
|
||||||
lib/geo_lookup
|
|
||||||
lib/launchdetection
|
|
||||||
lib/external_lgpl
|
|
||||||
lib/conversion
|
|
||||||
lib/terrain_estimation
|
|
||||||
lib/runway_takeoff
|
|
||||||
lib/tailsitter_recovery
|
|
||||||
lib/DriverFramework/framework
|
|
||||||
|
|
||||||
#
|
|
||||||
# POSIX
|
|
||||||
#
|
|
||||||
platforms/common
|
|
||||||
platforms/posix/px4_layer
|
|
||||||
platforms/posix/work_queue
|
|
||||||
)
|
|
||||||
|
|
||||||
set(config_df_driver_list
|
|
||||||
mpu9250
|
|
||||||
lsm9ds1
|
|
||||||
ms5611
|
|
||||||
hmc5883
|
|
||||||
trone
|
|
||||||
isl29501
|
|
||||||
)
|
|
||||||
@@ -73,6 +73,9 @@ set(config_module_list
|
|||||||
#
|
#
|
||||||
# PX4 drivers
|
# PX4 drivers
|
||||||
#
|
#
|
||||||
|
drivers/gps
|
||||||
|
drivers/navio_sysfs_rc_in
|
||||||
|
drivers/navio_sysfs_pwm_out
|
||||||
|
|
||||||
#
|
#
|
||||||
# Libraries
|
# Libraries
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ df_lsm9ds1_wrapper start -R 4
|
|||||||
#df_mpu9250_wrapper start -R 10
|
#df_mpu9250_wrapper start -R 10
|
||||||
#df_hmc5883_wrapper start
|
#df_hmc5883_wrapper start
|
||||||
df_ms5611_wrapper start
|
df_ms5611_wrapper start
|
||||||
|
gps start -d /dev/pts/0
|
||||||
sensors start
|
sensors start
|
||||||
commander start
|
commander start
|
||||||
attitude_estimator_q start
|
attitude_estimator_q start
|
||||||
@@ -18,4 +19,9 @@ mavlink start -u 14556 -r 1000000
|
|||||||
sleep 1
|
sleep 1
|
||||||
mavlink stream -u 14556 -s HIGHRES_IMU -r 50
|
mavlink stream -u 14556 -s HIGHRES_IMU -r 50
|
||||||
mavlink stream -u 14556 -s ATTITUDE -r 50
|
mavlink stream -u 14556 -s ATTITUDE -r 50
|
||||||
mavlink boot_complete
|
mavlink start -d /dev/ttyUSB0
|
||||||
|
mavlink stream -d /dev/ttyUSB0 -s HIGHRES_IMU -r 50
|
||||||
|
mavlink stream -d /dev/ttyUSB0 -s ATTITUDE -r 50
|
||||||
|
navio_sysfs_rc_in start
|
||||||
|
navio_sysfs_pwm_out start
|
||||||
|
mavlink boot_complete
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
uorb start
|
|
||||||
param set SYS_AUTOSTART 4001
|
|
||||||
param set MAV_BROADCAST 1
|
|
||||||
sleep 1
|
|
||||||
param set MAV_TYPE 2
|
|
||||||
df_lsm9ds1_wrapper start -R 4
|
|
||||||
#df_mpu9250_wrapper start -R 10
|
|
||||||
#df_hmc5883_wrapper start
|
|
||||||
df_ms5611_wrapper start
|
|
||||||
gps start -d /dev/pts/0
|
|
||||||
sensors start
|
|
||||||
commander start
|
|
||||||
attitude_estimator_q start
|
|
||||||
position_estimator_inav start
|
|
||||||
land_detector start multicopter
|
|
||||||
mc_pos_control start
|
|
||||||
mc_att_control start
|
|
||||||
mavlink start -d /dev/ttyUSB0
|
|
||||||
sleep 1
|
|
||||||
mavlink stream -d /dev/ttyUSB0 -s HIGHRES_IMU -r 50
|
|
||||||
mavlink stream -d /dev/ttyUSB0 -s ATTITUDE -r 50
|
|
||||||
mavlink boot_complete
|
|
||||||
navio_sysfs_rc_in start
|
|
||||||
navio_sysfs_pwm_out start
|
|
||||||
Reference in New Issue
Block a user