Skip to content
Snippets Groups Projects
Commit 4da5e61f authored by Daniel Agar's avatar Daniel Agar Committed by Beat Küng
Browse files

uavcan move to cdev lib

parent d0d1967a
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@
*/
UavcanNode *UavcanNode::_instance;
UavcanNode::UavcanNode(uavcan::ICanDriver &can_driver, uavcan::ISystemClock &system_clock) :
CDev("uavcan", UAVCAN_DEVICE_PATH),
CDev(UAVCAN_DEVICE_PATH),
_node(can_driver, system_clock, _pool_allocator),
_node_mutex(),
_esc_controller(_node),
......@@ -866,7 +866,7 @@ int UavcanNode::run()
// this would be bad...
if (poll_ret < 0) {
DEVICE_LOG("poll error %d", errno);
PX4_ERR("poll error %d", errno);
continue;
} else {
......
......@@ -77,7 +77,7 @@
/**
* A UAVCAN node.
*/
class UavcanNode : public device::CDev
class UavcanNode : public cdev::CDev
{
static constexpr unsigned MaxBitRatePerSec = 1000000;
static constexpr unsigned bitPerFrame = 148;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment