From 4c4c3d467b3577b9aec1daac9a54a91e82341b5f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Aug 2020 13:31:36 +1000 Subject: [PATCH] HAL_ChibiOS: added f103-Airspeed sensor for Matek CAN airspeed sensor --- .../hwdef/f103-Airspeed/hwdef-bl.dat | 7 +++++++ .../AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef.dat | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef-bl.dat new file mode 100644 index 0000000000..ed2f2ff83c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef-bl.dat @@ -0,0 +1,7 @@ +include ../f103-periph/hwdef-bl.dat + +define CAN_APP_NODE_NAME "org.ardupilot.f103_airspeed" + +# use DNA +define HAL_CAN_DEFAULT_NODE_ID 0 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef.dat new file mode 100644 index 0000000000..7e921aaa62 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-Airspeed/hwdef.dat @@ -0,0 +1,14 @@ +include ../f103-periph/hwdef.dat + +define CAN_APP_NODE_NAME "org.ardupilot.f103_airspeed" + +# use DNA +define HAL_CAN_DEFAULT_NODE_ID 0 + +define HAL_AIRSPEED_BUS_DEFAULT 0 + +# 10" DLVR sensor by default +define HAL_AIRSPEED_TYPE_DEFAULT 9 +define AIRSPEED_MAX_SENSORS 1 + +define HAL_PERIPH_ENABLE_AIRSPEED