diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/defaults.parm new file mode 100644 index 0000000000..3c7df259ff --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/defaults.parm @@ -0,0 +1,4 @@ +# setup for PORT +#| PORT0 | PORT1 | PORT2 | GPS | MSP | +#| USART1 | USART2 | USART3 | UART4 | UART5 | +GPS_PORT 3 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef-bl.dat new file mode 100644 index 0000000000..af5a0423d3 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef-bl.dat @@ -0,0 +1,11 @@ +# hw definition file for the f405 Matek DLVR Airspeed Sensor + +# setup build for a peripheral firmware +env AP_PERIPH 1 + +include ../f405-MatekGPS/hwdef-bl.dat + +# Rename to f405_MatekAirspeed +undef CAN_APP_NODE_NAME +define CAN_APP_NODE_NAME "org.ardupilot.f405_MatekAirspeed" + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef.dat new file mode 100644 index 0000000000..b7e5a57989 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/f405-MatekAirspeed/hwdef.dat @@ -0,0 +1,21 @@ +# hw definition file for the f405 Matek DLVR Airspeed Sensor + +# setup build for a peripheral firmware +env AP_PERIPH 1 + +include ../f405-MatekGPS/hwdef.dat + +# Rename to f405_MatekAirspeed +undef CAN_APP_NODE_NAME +define CAN_APP_NODE_NAME "org.ardupilot.f405_MatekAirspeed" + +# Setup Airspeed Sensor to be I2C-DLVR-10in +undef HAL_AIRSPEED_TYPE_DEFAULT +define HAL_AIRSPEED_TYPE_DEFAULT 9 + +# Disable these sensors by default +# This is so we do not send messages onto the CAN network for unattached devices +# A user may change this by using a tool to edit the CAN device parameters such as the DroneCAN GUI Tool +define AP_COMPASS_ENABLE_DEFAULT 0 +define AP_PERIPH_BARO_ENABLE_DEFAULT 0 +define HAL_GPS_TYPE_DEFAULT 0