From 5fd3be1b75df2362c318ac85064f2475f4f98491 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Mon, 15 Jan 2024 23:16:07 +0000 Subject: [PATCH] AP_DroneCAN: add subscribe msgs for TemperatureSensor --- libraries/AP_DroneCAN/AP_DroneCAN.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_DroneCAN/AP_DroneCAN.cpp b/libraries/AP_DroneCAN/AP_DroneCAN.cpp index 810e1ba074..006a3cfed8 100644 --- a/libraries/AP_DroneCAN/AP_DroneCAN.cpp +++ b/libraries/AP_DroneCAN/AP_DroneCAN.cpp @@ -59,6 +59,8 @@ #include #endif +#include + extern const AP_HAL::HAL& hal; // setup default pool size @@ -391,6 +393,9 @@ void AP_DroneCAN::init(uint8_t driver_index, bool enable_filters) #if HAL_MOUNT_XACTI_ENABLED AP_Mount_Xacti::subscribe_msgs(this); #endif +#if AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED + AP_TemperatureSensor_DroneCAN::subscribe_msgs(this); +#endif act_out_array.set_timeout_ms(5); act_out_array.set_priority(CANARD_TRANSFER_PRIORITY_HIGH);