Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 committed Oct 16, 2023
1 parent 85156de commit 4c65974
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,11 @@ void PidLongitudinalController::updateControlState(const ControlData & control_d
// NOTE: Stopped or moving backward
return true;
}
}
if (is_stopped || 0.0 < current_vel) {
// NOTE: Stopped or moving forward
return true;
} else {
if (is_stopped || 0.0 < current_vel) {
// NOTE: Stopped or moving forward
return true;
}
}
return false;
}();
Expand Down

0 comments on commit 4c65974

Please sign in to comment.