mirror of https://github.com/ArduPilot/ardupilot
Plane: enable MPU9250 for Linux build
This commit is contained in:
parent
09e9074cb2
commit
f6bba74fb6
|
@ -245,6 +245,8 @@ AP_InertialSensor_Oilpan ins( &apm1_adc );
|
||||||
AP_InertialSensor_Flymaple ins;
|
AP_InertialSensor_Flymaple ins;
|
||||||
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
|
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
|
||||||
AP_InertialSensor_L3G4200D ins;
|
AP_InertialSensor_L3G4200D ins;
|
||||||
|
#elif CONFIG_INS_TYPE == CONFIG_INS_MPU9250
|
||||||
|
AP_InertialSensor_MPU9250 ins;
|
||||||
#else
|
#else
|
||||||
#error Unrecognised CONFIG_INS_TYPE setting.
|
#error Unrecognised CONFIG_INS_TYPE setting.
|
||||||
#endif // CONFIG_INS_TYPE
|
#endif // CONFIG_INS_TYPE
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||||
# define BATTERY_VOLT_PIN -1
|
# define BATTERY_VOLT_PIN -1
|
||||||
# define BATTERY_CURR_PIN -1
|
# define BATTERY_CURR_PIN -1
|
||||||
# define CONFIG_INS_TYPE CONFIG_INS_MPU6000
|
# define CONFIG_INS_TYPE CONFIG_INS_MPU9250
|
||||||
# define CONFIG_BARO AP_BARO_MS5611
|
# define CONFIG_BARO AP_BARO_MS5611
|
||||||
# define CONFIG_MS5611_SERIAL AP_BARO_MS5611_SPI
|
# define CONFIG_MS5611_SERIAL AP_BARO_MS5611_SPI
|
||||||
# define CONFIG_COMPASS AP_COMPASS_HMC5843
|
# define CONFIG_COMPASS AP_COMPASS_HMC5843
|
||||||
|
|
|
@ -205,6 +205,7 @@ enum log_messages {
|
||||||
#define CONFIG_INS_FLYMAPLE 5
|
#define CONFIG_INS_FLYMAPLE 5
|
||||||
#define CONFIG_INS_L3G4200D 6
|
#define CONFIG_INS_L3G4200D 6
|
||||||
#define CONFIG_INS_VRBRAIN 7
|
#define CONFIG_INS_VRBRAIN 7
|
||||||
|
#define CONFIG_INS_MPU9250 8
|
||||||
|
|
||||||
// barometer driver types
|
// barometer driver types
|
||||||
#define AP_BARO_BMP085 1
|
#define AP_BARO_BMP085 1
|
||||||
|
|
Loading…
Reference in New Issue