HAL_Linux: add support for api change in AP_HAL::CANManager

This commit is contained in:
Siddharth Purohit 2018-02-02 01:06:33 +05:30 committed by Andrew Tridgell
parent 8d5667afa0
commit a55f1c85af
1 changed files with 2 additions and 2 deletions

View File

@ -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();