mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
mpu9250: create dedicated i2c version and delete legacy driver
- update crazyflie and bbblue usage - eventually this should be merged with the SPI version after interface changes are made
This commit is contained in:
@@ -11,7 +11,8 @@ px4_add_board(
|
||||
barometer/lps25h
|
||||
distance_sensor/vl53l0x
|
||||
gps
|
||||
imu/mpu9250
|
||||
magnetometer/akm/ak8963
|
||||
imu/invensense/mpu9250
|
||||
optical_flow/pmw3901
|
||||
pwm_out
|
||||
MODULES
|
||||
@@ -23,9 +24,9 @@ px4_add_board(
|
||||
events
|
||||
flight_mode_manager
|
||||
land_detector
|
||||
landing_target_estimator
|
||||
#landing_target_estimator
|
||||
load_mon
|
||||
local_position_estimator
|
||||
#local_position_estimator
|
||||
logger
|
||||
mavlink
|
||||
mc_att_control
|
||||
|
||||
@@ -6,10 +6,11 @@
|
||||
board_adc start
|
||||
|
||||
# Onboard I2C
|
||||
mpu9250 -I -R 12 start
|
||||
|
||||
# I2C bypass of mpu
|
||||
lps25h -I start
|
||||
if mpu9250_i2c -I -b 3 -a 0x69 -R 6 start; then
|
||||
sleep 1 # wait for mpu9250 to be configured with bypass enabled
|
||||
ak8963 -I -b 3 -R 4 start
|
||||
lps25h -I -b 3 start
|
||||
fi
|
||||
|
||||
# Optical flow deck
|
||||
vl53l0x start -X
|
||||
|
||||
Reference in New Issue
Block a user