mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Rover: update for Stub -> HIL
This commit is contained in:
parent
234eaceb14
commit
20d1ddb5ba
@ -236,8 +236,8 @@ AP_GPS_HIL g_gps_driver;
|
|||||||
AP_InertialSensor_MPU6000 ins;
|
AP_InertialSensor_MPU6000 ins;
|
||||||
#elif CONFIG_INS_TYPE == CONFIG_INS_PX4
|
#elif CONFIG_INS_TYPE == CONFIG_INS_PX4
|
||||||
AP_InertialSensor_PX4 ins;
|
AP_InertialSensor_PX4 ins;
|
||||||
#elif CONFIG_INS_TYPE == CONFIG_INS_STUB
|
#elif CONFIG_INS_TYPE == CONFIG_INS_HIL
|
||||||
AP_InertialSensor_Stub ins;
|
AP_InertialSensor_HIL ins;
|
||||||
#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_OILPAN
|
#elif CONFIG_INS_TYPE == CONFIG_INS_OILPAN
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
# define BATTERY_PIN_1 1
|
# define BATTERY_PIN_1 1
|
||||||
# define CURRENT_PIN_1 2
|
# define CURRENT_PIN_1 2
|
||||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
||||||
# define CONFIG_INS_TYPE CONFIG_INS_STUB
|
# define CONFIG_INS_TYPE CONFIG_INS_HIL
|
||||||
# define CONFIG_COMPASS AP_COMPASS_HIL
|
# define CONFIG_COMPASS AP_COMPASS_HIL
|
||||||
# define BATTERY_PIN_1 1
|
# define BATTERY_PIN_1 1
|
||||||
# define CURRENT_PIN_1 2
|
# define CURRENT_PIN_1 2
|
||||||
@ -102,7 +102,7 @@
|
|||||||
#undef GPS_PROTOCOL
|
#undef GPS_PROTOCOL
|
||||||
#define GPS_PROTOCOL GPS_PROTOCOL_HIL
|
#define GPS_PROTOCOL GPS_PROTOCOL_HIL
|
||||||
#undef CONFIG_INS_TYPE
|
#undef CONFIG_INS_TYPE
|
||||||
#define CONFIG_INS_TYPE CONFIG_INS_STUB
|
#define CONFIG_INS_TYPE CONFIG_INS_HIL
|
||||||
#undef CONFIG_COMPASS
|
#undef CONFIG_COMPASS
|
||||||
#define CONFIG_COMPASS AP_COMPASS_HIL
|
#define CONFIG_COMPASS AP_COMPASS_HIL
|
||||||
#endif
|
#endif
|
||||||
|
@ -198,7 +198,7 @@ enum ap_message {
|
|||||||
// InertialSensor driver types
|
// InertialSensor driver types
|
||||||
#define CONFIG_INS_OILPAN 1
|
#define CONFIG_INS_OILPAN 1
|
||||||
#define CONFIG_INS_MPU6000 2
|
#define CONFIG_INS_MPU6000 2
|
||||||
#define CONFIG_INS_STUB 3
|
#define CONFIG_INS_HIL 3
|
||||||
#define CONFIG_INS_PX4 4
|
#define CONFIG_INS_PX4 4
|
||||||
|
|
||||||
// compass driver types
|
// compass driver types
|
||||||
|
Loading…
Reference in New Issue
Block a user