diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 71bdf2019c..0b9c97a4e0 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -38,6 +38,7 @@ #define HAL_BOARD_SUBTYPE_LINUX_EDGE 1020 #define HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ 1021 #define HAL_BOARD_SUBTYPE_LINUX_POCKET 1022 +#define HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR 1023 /* HAL CHIBIOS sub-types, starting at 5000 */ #define HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412 5000 diff --git a/libraries/AP_HAL/board/linux.h b/libraries/AP_HAL/board/linux.h index 0f25f9a333..2f874b91f8 100644 --- a/libraries/AP_HAL/board/linux.h +++ b/libraries/AP_HAL/board/linux.h @@ -176,6 +176,18 @@ #define HAL_OPTFLOW_PX4FLOW_I2C_BUS 2 #define HAL_RANGEFINDER_LIGHTWARE_I2C_BUS 2 #define HAL_WITH_UAVCAN 1 +#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR + #define HAL_INS_PROBE_LIST PROBE_IMU_SPI(LSM9DS1, "lsm9ds1_ag", ROTATION_ROLL_180_YAW_270) + #define HAL_MAG_PROBE_LIST PROBE_MAG_SPI(LSM9DS1, "lsm9ds1_m", ROTATION_PITCH_180_YAW_270) + #define HAL_BARO_PROBE_LIST PROBE_BARO_SPI(BMP280, "bmp280") + #define HAL_BATT_CURR_PIN 0 + #define HAL_BATT_CURR_SCALE 1 + #define HAL_BATT_VOLT_PIN 1 + #define HAL_BATT_VOLT_SCALE 1 + #define HAL_RGBLED_RED 24 + #define HAL_RGBLED_GREEN 25 + #define HAL_RGBLED_BLUE 26 + #define HAL_RGBLED_NORMAL_POLARITY false #elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE #define HAL_GPIO_A_LED_PIN 66 #define HAL_GPIO_B_LED_PIN 67