mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-30 19:13:43 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user