Skip to content

Commit

Permalink
remove redundant initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Jun 6, 2024
1 parent 9ce56ba commit 6d96bb9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ void MrmEmergencyStopOperator::onTimer()

Control MrmEmergencyStopOperator::compensateControlCommand(const Control & prev_control_cmd) const
{
auto control_cmd = Control();

control_cmd = prev_control_cmd;
auto control_cmd = prev_control_cmd;
const auto dt = (this->now() - prev_control_cmd.stamp).seconds();

control_cmd.stamp = this->now();
Expand Down

0 comments on commit 6d96bb9

Please sign in to comment.