Skip to content

Commit

Permalink
Lower range slightly to not go over 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
andyblarblar committed Mar 28, 2024
1 parent 77e05c0 commit 522fb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TeleopAckJoyNode_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void TeleopAckJoyNode::joy_cb(sensor_msgs::msg::Joy::SharedPtr outputs) {
float left_stick_lr_val = outputs->axes.at(0);
float right_trigger_val = -outputs->axes.at(5);

command.steering_angle = map_input(left_stick_lr_val, -1, 1, -0.2733, 0.2733);
command.steering_angle = map_input(left_stick_lr_val, -1, 1, -0.273, 0.273);
command.speed = map_input(right_trigger_val, -1, 1, 0, 5);

ackermann_pub->publish(command);
Expand Down

0 comments on commit 522fb6a

Please sign in to comment.