Skip to content
Snippets Groups Projects
Commit e6af7dad authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Plane: switched to L3G4200D driver for Linux

parent 28b4ae1c
No related branches found
No related tags found
No related merge requests found
...@@ -252,6 +252,8 @@ AP_InertialSensor_HIL ins; ...@@ -252,6 +252,8 @@ AP_InertialSensor_HIL ins;
AP_InertialSensor_Oilpan ins( &apm1_adc ); AP_InertialSensor_Oilpan ins( &apm1_adc );
#elif CONFIG_INS_TYPE == CONFIG_INS_FLYMAPLE #elif CONFIG_INS_TYPE == CONFIG_INS_FLYMAPLE
AP_InertialSensor_Flymaple ins; AP_InertialSensor_Flymaple ins;
#elif CONFIG_INS_TYPE == CONFIG_INS_L3G4200D
AP_InertialSensor_L3G4200D ins;
#else #else
#error Unrecognised CONFIG_INS_TYPE setting. #error Unrecognised CONFIG_INS_TYPE setting.
#endif // CONFIG_INS_TYPE #endif // CONFIG_INS_TYPE
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,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_OILPAN # define CONFIG_INS_TYPE CONFIG_INS_L3G4200D
# define CONFIG_BARO AP_BARO_BMP085 # define CONFIG_BARO AP_BARO_BMP085
# define CONFIG_COMPASS AP_COMPASS_HMC5843 # define CONFIG_COMPASS AP_COMPASS_HMC5843
#endif #endif
......
...@@ -243,6 +243,7 @@ enum log_messages { ...@@ -243,6 +243,7 @@ enum log_messages {
#define CONFIG_INS_HIL 3 #define CONFIG_INS_HIL 3
#define CONFIG_INS_PX4 4 #define CONFIG_INS_PX4 4
#define CONFIG_INS_FLYMAPLE 5 #define CONFIG_INS_FLYMAPLE 5
#define CONFIG_INS_L3G4200D 6
// barometer driver types // barometer driver types
#define AP_BARO_BMP085 1 #define AP_BARO_BMP085 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment