Plane: enable MPU9250 for Linux build

This commit is contained in:
Andrew Tridgell 2014-07-07 09:49:38 +10:00
parent 09e9074cb2
commit f6bba74fb6
3 changed files with 4 additions and 1 deletions

View File

@ -245,6 +245,8 @@ AP_InertialSensor_Oilpan ins( &apm1_adc );
AP_InertialSensor_Flymaple ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
AP_InertialSensor_L3G4200D ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_MPU9250
AP_InertialSensor_MPU9250 ins;
#else
#error Unrecognised CONFIG_INS_TYPE setting.
#endif // CONFIG_INS_TYPE

View File

@ -112,7 +112,7 @@
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
# define BATTERY_VOLT_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_MS5611_SERIAL AP_BARO_MS5611_SPI
# define CONFIG_COMPASS AP_COMPASS_HMC5843

View File

@ -205,6 +205,7 @@ enum log_messages {
#define CONFIG_INS_FLYMAPLE 5
#define CONFIG_INS_L3G4200D 6
#define CONFIG_INS_VRBRAIN 7
#define CONFIG_INS_MPU9250 8
// barometer driver types
#define AP_BARO_BMP085 1