mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-10 03:42:09 +08:00
Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot * bump cereal old-commit-hash: 714f8c3f0bf8fa98a4619763d46ecb3ea29bc9f6
This commit is contained in:
@@ -4,7 +4,7 @@ from common.params import Params
|
||||
from copy import copy
|
||||
from cereal import car, log
|
||||
import cereal.messaging as messaging
|
||||
from selfdrive.car.car_helpers import get_car
|
||||
from selfdrive.car.car_helpers import get_car, get_one_can
|
||||
from selfdrive.boardd.boardd import can_list_to_can_capnp
|
||||
|
||||
HwType = log.HealthData.HwType
|
||||
@@ -28,7 +28,7 @@ def steer_thread():
|
||||
hw_type = messaging.recv_one(health).health.hwType
|
||||
has_relay = hw_type in [HwType.blackPanda, HwType.uno, HwType.dos]
|
||||
print("Waiting for CAN messages...")
|
||||
messaging.get_one_can(logcan)
|
||||
get_one_can(logcan)
|
||||
|
||||
CI, CP = get_car(logcan, sendcan, has_relay)
|
||||
Params().put("CarParams", CP.to_bytes())
|
||||
|
||||
Reference in New Issue
Block a user