mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:53:33 +08:00
uavcan move to cdev lib
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user