mirror of https://github.com/ArduPilot/ardupilot
HAL_Linux: add support for api change in AP_HAL::CANManager
This commit is contained in:
parent
8d5667afa0
commit
a55f1c85af
|
@ -170,14 +170,14 @@ private:
|
|||
std::vector<can_filter> _hw_filters_container;
|
||||
};
|
||||
|
||||
class CANManager: public AP_HAL::CANManager {
|
||||
class CANManager: public AP_HAL::CANManager, public uavcan::ICanDriver {
|
||||
public:
|
||||
static CANManager *from(AP_HAL::CANManager *can)
|
||||
{
|
||||
return static_cast<CANManager*>(can);
|
||||
}
|
||||
|
||||
CANManager() { _ifaces.reserve(uavcan::MaxCanIfaces); }
|
||||
CANManager() : AP_HAL::CANManager(this) { _ifaces.reserve(uavcan::MaxCanIfaces); }
|
||||
~CANManager() { }
|
||||
|
||||
void _timer_tick();
|
||||
|
|
Loading…
Reference in New Issue