From 84b6af094f93071b14fb7a2babcaed479f84c3a0 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Sun, 12 Jan 2025 16:04:08 +0100 Subject: [PATCH] Add missing import for messaging in helpers.py The `messaging` module was added to resolve potential issues with undefined references. This change ensures all required imports are present, improving the reliability and maintainability of the code. --- sunnypilot/selfdrive/controls/dec/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunnypilot/selfdrive/controls/dec/helpers.py b/sunnypilot/selfdrive/controls/dec/helpers.py index 3ad5e8a5b4..c35d55e5b0 100644 --- a/sunnypilot/selfdrive/controls/dec/helpers.py +++ b/sunnypilot/selfdrive/controls/dec/helpers.py @@ -1,4 +1,4 @@ -from cereal import custom +from cereal import custom, messaging MpcSource = custom.MpcSource def get_mpc_mode(sm, dynamic_experimental_controller, mpc, CP): @@ -39,4 +39,4 @@ def publish_longitudinal_plan_sp(sm, pm, mpc, dynamic_experimental_controller): print(f"dynamicExperimentalControl: {longitudinalPlanSP.dynamicExperimentalControl}") - pm.send('longitudinalPlanSP', plan_sp_send) \ No newline at end of file + pm.send('longitudinalPlanSP', plan_sp_send)