Fixed interface sending faster speed then intended
This commit is contained in:
@ -69,8 +69,8 @@ hardware_interface::return_type mg::MgStepperInterface::write(const rclcpp::Time
|
|||||||
std::string cmd_left;
|
std::string cmd_left;
|
||||||
std::string cmd_right;
|
std::string cmd_right;
|
||||||
|
|
||||||
cmd_left = std::to_string(left_wheel_vel_cmd / 2 * M_PI) + " ";
|
cmd_left = std::to_string(left_wheel_vel_cmd / (2 * M_PI)) + " ";
|
||||||
cmd_right = std::to_string(-right_wheel_vel_cmd / 2 * M_PI);
|
cmd_right = std::to_string(-right_wheel_vel_cmd / (2 * M_PI));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
odrive_serial_interface.Write(cmd_left + cmd_right);
|
odrive_serial_interface.Write(cmd_left + cmd_right);
|
||||||
|
|||||||
Reference in New Issue
Block a user