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:
Daniel Agar
2020-07-26 21:38:35 -04:00
parent c9a7894230
commit 3abe2e82d1
21 changed files with 830 additions and 2197 deletions

View File

@@ -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

View File

@@ -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