mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
RPi2: put drivers back in
This commit is contained in:
@@ -5,14 +5,14 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linu
|
|||||||
set(CMAKE_PROGRAM_PATH
|
set(CMAKE_PROGRAM_PATH
|
||||||
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
"${RPI_TOOLCHAIN_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian/bin"
|
||||||
${CMAKE_PROGRAM_PATH}
|
${CMAKE_PROGRAM_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
# This definition allows to differentiate if this just the usual POSIX build
|
# This definition allows to differentiate if this just the usual POSIX build
|
||||||
# or if it is for the RPi.
|
# or if it is for the RPi.
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-D__PX4_POSIX_RPI2
|
-D__PX4_POSIX_RPI2
|
||||||
-D__LINUX
|
-D__LINUX
|
||||||
)
|
)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
#
|
#
|
||||||
@@ -21,12 +21,11 @@ set(config_module_list
|
|||||||
drivers/device
|
drivers/device
|
||||||
modules/sensors
|
modules/sensors
|
||||||
platforms/posix/drivers/df_mpu9250_wrapper
|
platforms/posix/drivers/df_mpu9250_wrapper
|
||||||
#platforms/posix/drivers/df_bmp280_wrapper
|
|
||||||
#platforms/posix/drivers/df_hmc5883_wrapper
|
|
||||||
#platforms/posix/drivers/df_trone_wrapper
|
|
||||||
#platforms/posix/drivers/df_isl29501_wrapper
|
|
||||||
platforms/posix/drivers/df_lsm9ds1_wrapper
|
platforms/posix/drivers/df_lsm9ds1_wrapper
|
||||||
platforms/posix/drivers/df_ms5611_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
|
# System commands
|
||||||
@@ -100,15 +99,13 @@ set(config_module_list
|
|||||||
platforms/common
|
platforms/common
|
||||||
platforms/posix/px4_layer
|
platforms/posix/px4_layer
|
||||||
platforms/posix/work_queue
|
platforms/posix/work_queue
|
||||||
|
)
|
||||||
)
|
|
||||||
|
|
||||||
set(config_df_driver_list
|
set(config_df_driver_list
|
||||||
mpu9250
|
mpu9250
|
||||||
#bmp280
|
|
||||||
#hmc5883
|
|
||||||
trone
|
|
||||||
#isl29501
|
|
||||||
lsm9ds1
|
lsm9ds1
|
||||||
ms5611
|
ms5611
|
||||||
)
|
hmc5883
|
||||||
|
trone
|
||||||
|
isl29501
|
||||||
|
)
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ param set SYS_AUTOSTART 4001
|
|||||||
param set MAV_BROADCAST 1
|
param set MAV_BROADCAST 1
|
||||||
sleep 1
|
sleep 1
|
||||||
param set MAV_TYPE 2
|
param set MAV_TYPE 2
|
||||||
df_mpu9250_wrapper start
|
df_lsm9ds1_wrapper start -R 4
|
||||||
df_hmc5883_wrapper start
|
#df_mpu9250_wrapper start -R 10
|
||||||
|
#df_hmc5883_wrapper start
|
||||||
sensors start
|
sensors start
|
||||||
commander start
|
commander start
|
||||||
ekf2 start
|
ekf2 start
|
||||||
|
|||||||
Reference in New Issue
Block a user