Skip to content

Commit

Permalink
fix(avoidance): don't clear waiting approval if raw shift line exists (
Browse files Browse the repository at this point in the history
…autowarefoundation#4012)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored Jun 19, 2023
1 parent 18a5c5f commit 8577563
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2693,7 +2693,7 @@ BehaviorModuleOutput AvoidanceModule::planWaitingApproval()
[](const auto & o) { return !o.is_avoidable; });

const auto candidate = planCandidate();
if (!avoidance_data_.safe_new_sl.empty()) {
if (!avoidance_data_.unapproved_raw_sl.empty()) {
updateCandidateRTCStatus(candidate);
waitApproval();
} else if (all_unavoidable) {
Expand Down

0 comments on commit 8577563

Please sign in to comment.