Skip to content

Commit

Permalink
Planning: minor bug fix in lane-change state tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonXu12 authored and sjiang2018 committed Nov 8, 2019
1 parent 4d7802b commit dac62df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion modules/planning/common/planning_gflags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ DEFINE_bool(reckless_change_lane, false,
DEFINE_double(change_lane_fail_freeze_time, 1.0,
"seconds. Not allowed to change lane this amount of time "
"if it just failed to change lane");
DEFINE_double(change_lane_success_freeze_time, 3.0,
DEFINE_double(change_lane_success_freeze_time, 1.5,
"seconds. Not allowed to change lane this amount of time "
"if it just finished change lane");
DEFINE_double(change_lane_min_length, 30.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ void LaneChangeDecider::UpdatePreparationDistance(
auto* lane_change_status = PlanningContext::Instance()
->mutable_planning_status()
->mutable_change_lane();
lane_change_status->set_timestamp(Clock::NowInSeconds());
lane_change_status->set_path_id(reference_line_info->Lanes().Id());
ADEBUG << "Current time: " << lane_change_status->timestamp();
ADEBUG << "Lane Change Status: " << lane_change_status->status();
// If lane change planning succeeded, update and return
Expand Down

0 comments on commit dac62df

Please sign in to comment.