mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-04-06 18:04:00 +08:00
ui: dont hide steering wheel when blindspot disabled (#1709)
Update blind_spot_indicators.py Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ class BlindSpotIndicators:
|
||||
|
||||
@property
|
||||
def detected(self) -> bool:
|
||||
return self._blind_spot_left_alpha_filter.x > 0.01 or self._blind_spot_right_alpha_filter.x > 0.01
|
||||
return ui_state.blindspot and (self._blind_spot_left_alpha_filter.x > 0.01 or self._blind_spot_right_alpha_filter.x > 0.01)
|
||||
|
||||
def render(self, rect: rl.Rectangle) -> None:
|
||||
if not ui_state.blindspot:
|
||||
|
||||
Reference in New Issue
Block a user