Skip to content

Commit

Permalink
DLP: display Laneless path on initialization (commaai#200)
Browse files Browse the repository at this point in the history
* DLP: display Laneless path on initialization

* Default in ui as well
  • Loading branch information
sunnyhaibin authored Jun 28, 2023
1 parent 3d9668d commit eb75b0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/lateral_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, CP, use_lanelines=True):
self.param_s = Params()
self.dynamic_lane_profile_enabled = self.param_s.get_bool("DynamicLaneProfileToggle")
self.dynamic_lane_profile = int(self.param_s.get("DynamicLaneProfile", encoding="utf8"))
self.dynamic_lane_profile_status = False
self.dynamic_lane_profile_status = True
self.dynamic_lane_profile_status_buffer = False

self.standstill_elapsed = 0.0
Expand Down
3 changes: 2 additions & 1 deletion selfdrive/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ typedef struct UIScene {
uint64_t started_frame;

int dynamic_lane_profile;
bool dynamic_lane_profile_status, dynamic_lane_profile_toggle;
bool dynamic_lane_profile_status = true;
bool dynamic_lane_profile_toggle;

bool visual_brake_lights;

Expand Down

0 comments on commit eb75b0c

Please sign in to comment.