Skip to content

Commit

Permalink
AP_DroneCAN: add method to get canard object
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jan 30, 2024
1 parent 0cd13ba commit 976a94e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_DroneCAN/AP_Canard_iface.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class CanardInterface : public Canard::Interface {
uint16_t pool_peak_percent();
const dronecan_protocol_Stats& get_protocol_stats() const { return protocol_stats; }

CanardInstance& get_canard() { return canard; }

private:
CanardInstance canard;
AP_HAL::CANIface* ifaces[HAL_NUM_CAN_IFACES];
Expand Down

0 comments on commit 976a94e

Please sign in to comment.