IQ.Pilot Release Commit @ bec7652
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
||||
"""
|
||||
import pyray as rl
|
||||
from openpilot.selfdrive.ui.ui_state import ui_state, UIStatus
|
||||
from iqpilot.selfdrive.ui.ui_state import ui_state, UIStatus
|
||||
|
||||
|
||||
ACTIVE_CONFIDENCE_TOP = rl.Color(0x22, 0xB8, 0xB9, 0xFF)
|
||||
@@ -19,7 +19,6 @@ class IQConfidenceBall:
|
||||
if ui_state.status == UIStatus.LAT_ONLY:
|
||||
return ui_state.sm['modelV2'].meta.disengagePredictions.steerOverrideProbs
|
||||
|
||||
# UIStatus.LONG_ONLY
|
||||
return ui_state.sm['modelV2'].meta.disengagePredictions.brakeDisengageProbs
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -3,17 +3,10 @@ Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed
|
||||
"""
|
||||
import pyray as rl
|
||||
|
||||
from openpilot.selfdrive.ui.mici.onroad.hud_renderer import HudRenderer
|
||||
from openpilot.iqpilot.ui.onroad.hud_overlays import IQBlindSpotOverlay
|
||||
|
||||
from iqpilot.selfdrive.ui.mici.onroad.hud_renderer import HudRenderer
|
||||
from iqpilot.ui.onroad.hud_overlays import IQBlindSpotOverlay
|
||||
|
||||
class IQMiciHudRenderer(HudRenderer):
|
||||
"""Stock Mici HUD extended with IQ.Pilot's own onroad overlays.
|
||||
|
||||
Overlays live in a list so the renderer stays overlay-agnostic — each just needs
|
||||
update()/render(rect); blind-spot state is surfaced by any overlay that exposes it.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._overlays = [IQBlindSpotOverlay()]
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
"""
|
||||
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
||||
"""
|
||||
import pyray as rl
|
||||
from openpilot.selfdrive.ui.ui_state import UIStatus
|
||||
|
||||
IQ_LANE_LINE_COLORS = {
|
||||
UIStatus.LAT_ONLY: rl.Color(0x0C, 0x94, 0x96, 0xFF),
|
||||
UIStatus.LONG_ONLY: rl.Color(0x0C, 0x94, 0x96, 0xFF),
|
||||
}
|
||||
@@ -1,20 +1,10 @@
|
||||
"""
|
||||
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos/
|
||||
"""
|
||||
from openpilot.iqpilot.ui.onroad.hud_overlays import RoadNameBanner
|
||||
|
||||
from iqpilot.ui.onroad.hud_overlays import RoadNameBanner
|
||||
|
||||
class RoadNameRendererMici(RoadNameBanner):
|
||||
"""Compact capsule tuned for the mici's small panel."""
|
||||
|
||||
TYPE_SIZE = 28
|
||||
FLOOR_WIDTH = 120
|
||||
SIDE_PAD = 28
|
||||
MARGIN = 200
|
||||
DROP = 8
|
||||
BAR_H = TYPE_SIZE + 14
|
||||
CURVE = 0.35
|
||||
SEGS = 8
|
||||
BACKDROP_A = 140
|
||||
INK_A = 210
|
||||
INNER_PAD = 16
|
||||
TYPE_SIZE = 18
|
||||
MARGIN = 120
|
||||
GAP = 2
|
||||
TORQUE_SCALE = 1.0
|
||||
|
||||
Reference in New Issue
Block a user