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

Commit

Permalink
Disable motor publishing, only heartbeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Nov 22, 2023
1 parent ceb4f1e commit 857cb68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ void Node::motor_left_ctrl_loop()
pwm_left_msg.value = motor_left_pwm_value;

{
std::lock_guard <std::mutex> lock(_node_mtx);
_motor_left_pwm_pub->publish(pwm_left_msg);
//std::lock_guard <std::mutex> lock(_node_mtx);
//_motor_left_pwm_pub->publish(pwm_left_msg);
}
}

Expand Down Expand Up @@ -274,8 +274,8 @@ void Node::motor_right_ctrl_loop()
pwm_right_msg.value = motor_right_pwm_value;

{
std::lock_guard <std::mutex> lock(_node_mtx);
_motor_right_pwm_pub->publish(pwm_right_msg);
// std::lock_guard <std::mutex> lock(_node_mtx);
// _motor_right_pwm_pub->publish(pwm_right_msg);
}
}

Expand Down

0 comments on commit 857cb68

Please sign in to comment.