Custom UI
Added toggles to customize the lane lines, path, road edges, path edges, show the acceleration/deceleration on the path, lead info, driving logics, adjacent lanes, blind spot path, fps tracker, and an "Unlimited Length" mode that extends the road UI out as far as the model can see.
This commit is contained in:
@@ -21,7 +21,7 @@ from openpilot.common.params import Params
|
||||
from openpilot.common.realtime import DT_TRML
|
||||
from openpilot.selfdrive.controls.lib.alertmanager import set_offroad_alert
|
||||
from openpilot.system.hardware import HARDWARE, TICI, AGNOS
|
||||
from openpilot.system.loggerd.config import get_available_percent
|
||||
from openpilot.system.loggerd.config import get_available_bytes, get_available_percent, get_used_bytes
|
||||
from openpilot.selfdrive.statsd import statlog
|
||||
from openpilot.common.swaglog import cloudlog
|
||||
from openpilot.selfdrive.thermald.power_monitoring import PowerMonitoring
|
||||
@@ -247,6 +247,9 @@ def thermald_thread(end_event, hw_queue) -> None:
|
||||
|
||||
fpmsg = messaging.new_message('frogpilotDeviceState')
|
||||
|
||||
fpmsg.frogpilotDeviceState.freeSpace = round(get_available_bytes(default=32.0 * (2 ** 30)) / (2 ** 30))
|
||||
fpmsg.frogpilotDeviceState.usedSpace = round(get_used_bytes(default=0.0 * (2 ** 30)) / (2 ** 30))
|
||||
|
||||
pm.send("frogpilotDeviceState", fpmsg)
|
||||
|
||||
msg.deviceState.freeSpacePercent = get_available_percent(default=100.0)
|
||||
|
||||
Reference in New Issue
Block a user