Skip to content

Commit 99de34a

Browse files
committed
AP_HAL_ChibiOS: add MatekL431-AUAV hwdef
1 parent 8beb1b0 commit 99de34a

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Tools/scripts/size_compare_branches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def __init__(self,
181181
'MatekL431-ADSB', # uses USE_BOOTLOADER_FROM_BOARD
182182
'MatekL431-Airspeed', # uses USE_BOOTLOADER_FROM_BOARD
183183
'MatekL431-APDTelem', # uses USE_BOOTLOADER_FROM_BOARD
184+
'MatekL431-AUAV', # uses USE_BOOTLOADER_FROM_BOARD
184185
'MatekL431-BatteryTag', # uses USE_BOOTLOADER_FROM_BOARD
185186
'MatekL431-BattMon', # uses USE_BOOTLOADER_FROM_BOARD
186187
'MatekL431-bdshot', # uses USE_BOOTLOADER_FROM_BOARD
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
include ../MatekL431/hwdef.inc
2+
3+
define HAL_USE_ADC FALSE
4+
define STM32_ADC_USE_ADC1 FALSE
5+
define HAL_DISABLE_ADC_DRIVER TRUE
6+
7+
# ------------------ I2C airspeed -------------------------
8+
define AP_PERIPH_AIRSPEED_ENABLED 1
9+
10+
# 30" AUAV sensor by default
11+
define HAL_AIRSPEED_TYPE_DEFAULT 19
12+
define AIRSPEED_MAX_SENSORS 1
13+
14+
# enable Baro on AUAV
15+
define AP_PERIPH_BARO_ENABLED 1
16+
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
17+
define AP_BARO_AUAV_ENABLED 1
18+
define BARO_MAX_INSTANCES 1
19+
BARO AUAV I2C:0:0x27
20+
21+
# ----------- MSP -------------------
22+
define AP_PERIPH_MSP_ENABLED 1
23+
define HAL_MSP_ENABLED 1
24+
define AP_PERIPH_MSP_PORT_DEFAULT 1
25+
26+
USE_BOOTLOADER_FROM_BOARD MatekL431

0 commit comments

Comments
 (0)