Rover: switched to L3G4200D driver for Linux

This commit is contained in:
Andrew Tridgell 2013-10-08 11:25:52 +11:00
parent 48ed480d59
commit 1e7af3e101
3 changed files with 5 additions and 1 deletions

View File

@ -242,6 +242,8 @@ AP_InertialSensor_PX4 ins;
AP_InertialSensor_HIL ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_FLYMAPLE
AP_InertialSensor_Flymaple ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
AP_InertialSensor_L3G4200D ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_OILPAN
AP_InertialSensor_Oilpan ins( &adc );
#else

View File

@ -83,7 +83,7 @@
# define BATTERY_PIN_1 20
# define CURRENT_PIN_1 19
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
# define CONFIG_INS_TYPE CONFIG_INS_HIL
# define CONFIG_INS_TYPE CONFIG_INS_L3G4200D
# define CONFIG_COMPASS AP_COMPASS_HMC5843
# define BATTERY_PIN_1 -1
# define CURRENT_PIN_1 -1

View File

@ -196,6 +196,8 @@ enum ap_message {
#define CONFIG_INS_MPU6000 2
#define CONFIG_INS_HIL 3
#define CONFIG_INS_PX4 4
#define CONFIG_INS_FLYMAPLE 5
#define CONFIG_INS_L3G4200D 6
// compass driver types
#define AP_COMPASS_HMC5843 1