Skip to content

Commit

Permalink
fix the issue with the period when the controller update rate is high…
Browse files Browse the repository at this point in the history
…er than the controller manager
  • Loading branch information
saikishor committed Jul 26, 2023
1 parent 31f4f14 commit 7938f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ controller_interface::return_type ControllerManager::update(
if (controller_go)
{
auto controller_ret = loaded_controller.c->update(
time, (controller_update_rate != update_rate_ && controller_update_rate != 0)
time, (controller_update_factor != 1u)
? rclcpp::Duration::from_seconds(1.0 / controller_update_rate)
: period);

Expand Down

0 comments on commit 7938f83

Please sign in to comment.