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.
This commit is contained in:
DevTekVE
2025-01-12 16:04:08 +01:00
parent 55b6eae92e
commit 84b6af094f
+2 -2
View File
@@ -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)
pm.send('longitudinalPlanSP', plan_sp_send)