Skip to content

Commit

Permalink
fix loop timer for run_velocity_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-vsp committed May 4, 2024
1 parent cd3837f commit 8677178
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class CIA402MockSlave : public canopen::BasicSlave
(*this)[0x6064][0] =
(int32_t)((actual_position + target_velocity * control_cycle_period_d) * 1000.0);
std::this_thread::sleep_for(
std::chrono::milliseconds(((int32_t)control_cycle_period_d * 1000)));
std::chrono::milliseconds(((int32_t)(control_cycle_period_d * 1000.0))));
}
RCLCPP_INFO(rclcpp::get_logger("cia402_slave"), "Leaving run_profile_velocity_mode");
}
Expand Down

0 comments on commit 8677178

Please sign in to comment.