54e6124925
version: sunnypilot v2026.001.000 (dev) date: 2026-05-07T23:07:19 master commit: c28eb958740187620f2282023b8f1997cf90f583
15 lines
468 B
Python
15 lines
468 B
Python
"""
|
|
Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors.
|
|
|
|
This file is part of sunnypilot and is licensed under the MIT License.
|
|
See the LICENSE.md file in the root directory for more details.
|
|
"""
|
|
from openpilot.common.params import Params
|
|
|
|
|
|
def get_lat_delay(params: Params, stock_lat_delay: float) -> float:
|
|
if params.get_bool("LagdToggle"):
|
|
return float(params.get("LagdValueCache", return_default=True))
|
|
|
|
return stock_lat_delay
|