mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-06 08:46:08 +08:00
adapt to upstream
This commit is contained in:
@@ -916,11 +916,10 @@ def main():
|
||||
# Cache params every 60 seconds
|
||||
if sm.frame % 240 == 0:
|
||||
live_valid = sm.all_checks() and curvature_estimator.use_params
|
||||
params.put_nonblocking("LiveCurvatureParameters",
|
||||
curvature_estimator.get_msg(valid=sm.all_checks(),
|
||||
live_valid=live_valid,
|
||||
include_debug=True,
|
||||
include_preview=False).to_bytes())
|
||||
params.put("LiveCurvatureParameters", curvature_estimator.get_msg(valid=sm.all_checks(),
|
||||
live_valid=live_valid,
|
||||
include_debug=True,
|
||||
include_preview=False).to_bytes())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -217,6 +217,6 @@ class ICTogglesLayout(Widget):
|
||||
self._scroller.render(rect)
|
||||
|
||||
def _toggle_callback(self, state: bool, param: str):
|
||||
self._params.put_bool(param, state)
|
||||
self._params.put_bool(param, state, block=True)
|
||||
if self._toggle_defs[param][3]:
|
||||
self._params.put_bool("OnroadCycleRequested", True)
|
||||
self._params.put_bool("OnroadCycleRequested", True, block=True)
|
||||
|
||||
Reference in New Issue
Block a user