AP_HAL: Add navigator board

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-01-10 16:16:08 -03:00 committed by Andrew Tridgell
parent 994a934f88
commit dc44a17c46
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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