uavcan move to cdev lib

This commit is contained in:
Daniel Agar
2018-08-28 09:17:53 +02:00
committed by Beat Küng
parent d0d1967a65
commit 4da5e61f4a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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;