Skip to content

Commit

Permalink
use actual cmd velocities
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalTheCoder committed Nov 13, 2024
1 parent 035ba1d commit 60086eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions urc_hw/src/hardware_interfaces/rover_drivetrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ RoverDrivetrain::write(const rclcpp::Time &time,
pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer));

SetpointMessage setpoint;
setpoint.leftSetpoint = 1 * ENCODER_CPR * -1;
setpoint.rightSetpoint = 1 * ENCODER_CPR * -1;
setpoint.leftSetpoint = velocity_rps_commands[0] * ENCODER_CPR * -1;
setpoint.rightSetpoint = velocity_rps_commands[1] * ENCODER_CPR * -1;
message.messageType.setpointMessage = setpoint;

RCLCPP_INFO(rclcpp::get_logger(hardware_interface_name), "%d",
Expand Down

0 comments on commit 60086eb

Please sign in to comment.