AP_DroneCAN: added get_sem_rx()

This commit is contained in:
Andrew Tridgell
2025-05-09 13:08:40 +10:00
parent 883c5ec276
commit ce7bbb9cdb
+4
View File
@@ -64,6 +64,10 @@ public:
void update_rx_protocol_stats(int16_t res);
uint8_t get_node_id() const override { return canard.node_id; }
// get reference to the semaphore that is held during message receive
HAL_Semaphore &get_sem_rx(void) { return _sem_rx; }
private:
CanardInstance canard;
AP_HAL::CANIface* ifaces[HAL_NUM_CAN_IFACES];