mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Rover: switched to L3G4200D driver for Linux
This commit is contained in:
parent
48ed480d59
commit
1e7af3e101
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user