Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update Node.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
inusha47 committed Jan 31, 2024
1 parent d0814e2 commit 7217313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Node::Node()

_cyphal_demo_pub = _node_hdl.create_publisher<uavcan::primitive::scalar::Integer8_1_0>(CYPHAL_DEMO_PORT_ID, 1*1000*1000UL);

_setpoint_velocity_pub = _node_hdl.create_publisher<zubax::primitive::real16::Vector4_1_0>(SETPOINT_VELOCITY_ID, 1*1000*1000UL);
_setpoint_velocity_pub = _node_hdl.create_publisher<zubax::primitive::real16::Vector4_1_0>(SETPOINT_VELOCITY_ID, 1*1000*1000000UL);

RCLCPP_INFO(get_logger(), "%s init complete.", get_name());
}
Expand All @@ -99,7 +99,7 @@ Node::~Node()

void Node::init_cyphal_heartbeat()
{
_cyphal_heartbeat_pub = _node_hdl.create_publisher<uavcan::node::Heartbeat_1_0>(1*1000*1000UL /* = 1 sec in usecs. */);
_cyphal_heartbeat_pub = _node_hdl.create_publisher<uavcan::node::Heartbeat_1_0>(1*1000*1000000UL /* = 1 sec in usecs. */);

_cyphal_heartbeat_timer = create_wall_timer(CYPHAL_HEARTBEAT_PERIOD,
[this]()
Expand Down

0 comments on commit 7217313

Please sign in to comment.