mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
wait for pandad to start boardd
old-commit-hash: 144227d3d3901544ac068eb70b469d006179dabe
This commit is contained in:
@@ -10,6 +10,7 @@ from cereal import car
|
||||
from common.basedir import BASEDIR
|
||||
from common.params import Params
|
||||
from common.spinner import Spinner
|
||||
from common.timeout import Timeout
|
||||
from panda import Panda
|
||||
from selfdrive.boardd.boardd import can_list_to_can_capnp
|
||||
from selfdrive.car import make_can_msg
|
||||
@@ -38,6 +39,11 @@ def test_boardd_loopback():
|
||||
spinner = Spinner()
|
||||
time.sleep(2)
|
||||
|
||||
with Timeout(60, "boardd didn't start"):
|
||||
sm = messaging.SubMaster(['health'])
|
||||
while sm.rcv_frame['health'] < 0:
|
||||
sm.update(1000)
|
||||
|
||||
# boardd blocks on CarVin and CarParams
|
||||
cp = car.CarParams.new_message()
|
||||
cp.safetyModel = car.CarParams.SafetyModel.allOutput
|
||||
|
||||
Reference in New Issue
Block a user