mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-03 06:28:32 -04:00
AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
This commit is contained in:
parent
d7ef792933
commit
981d1d0f4c
@ -99,10 +99,10 @@ define STORAGE_FLASH_PAGE 1
|
|||||||
FLASH_RESERVE_START_KB 64
|
FLASH_RESERVE_START_KB 64
|
||||||
|
|
||||||
# one IMU
|
# one IMU
|
||||||
IMU Invensense I2C:0:0x69 ROTATION_YAW_180
|
IMU BMI088 I2C:0:0x18 I2C:0:0x69 ROTATION_ROLL_180
|
||||||
|
|
||||||
# one baro, attached via I2C on IMU
|
# one baro, attached via I2C on IMU
|
||||||
BARO LPS2XH:probe_InvensenseIMU I2C:0:0x5D 0x69
|
BARO BMP388 I2C:0:0x77
|
||||||
|
|
||||||
# no built-in compass, but probe the i2c bus for all possible
|
# no built-in compass, but probe the i2c bus for all possible
|
||||||
# external compass types
|
# external compass types
|
||||||
|
@ -223,10 +223,9 @@ bool AP_InertialSensor_BMI088::gyro_init()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dev_gyro->write_register(REGG_BGW_SOFTRESET, 0xB6)) {
|
// Soft-reset gyro
|
||||||
return false;
|
dev_gyro->write_register(REGG_BGW_SOFTRESET, 0xB6);
|
||||||
}
|
hal.scheduler->delay(30);
|
||||||
hal.scheduler->delay(10);
|
|
||||||
|
|
||||||
dev_gyro->setup_checked_registers(5, 20);
|
dev_gyro->setup_checked_registers(5, 20);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user