From a3468c4f1f92e5b3a09f6fbaec371667401846d2 Mon Sep 17 00:00:00 2001 From: MankaranSingh Date: Sat, 26 Nov 2022 20:46:34 +0530 Subject: [PATCH] adjust minLeadProb and less verbose controlsd --- selfdrive/controls/controlsd.py | 4 +--- selfdrive/ui/java/ai.flow.app/OnRoadScreen.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 4e71e96a..1d8c6e32 100644 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -813,11 +813,9 @@ def controlsd_thread(self): if self.i % 500 == 0: print("---------------") for event in self.events.events: - print(EVENT_NAME[event], EVENTS.get(event, {})) + print(EVENT_NAME[event]) print('enabled:', self.enabled) - print('initialized:', self.initialized) print('current alerts:', self.current_alert) - print('v_cruise:', self.v_cruise_kph) print("---------------") self.i += 1 diff --git a/selfdrive/ui/java/ai.flow.app/OnRoadScreen.java b/selfdrive/ui/java/ai.flow.app/OnRoadScreen.java index 524ef0c2..c860864d 100644 --- a/selfdrive/ui/java/ai.flow.app/OnRoadScreen.java +++ b/selfdrive/ui/java/ai.flow.app/OnRoadScreen.java @@ -63,7 +63,7 @@ public class OnRoadScreen extends ScreenAdapter { int drawResolution = 1; float fadeStrength = 0.03f; float minZ = 0.2f; - float minLeadProb = 0.7f; + float minLeadProb = 0.5f; float leadDrawScale = 6f; /** in meters (think of it as a 6m sign board) **/ float borderWidth = 30; float expandedBorderWidth = 600;