mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
Deprecate controlsState state fields (#33437)
* Deprecate controlsState state fields * sim works * update refs * one more * these too * update sim old-commit-hash: 3924ac587b735d1e735af4cb77faf6ccf053f656
This commit is contained in:
@@ -25,7 +25,7 @@ class TestSimBridgeBase:
|
||||
p_manager = subprocess.Popen("./launch_openpilot.sh", cwd=SIM_DIR)
|
||||
self.processes.append(p_manager)
|
||||
|
||||
sm = messaging.SubMaster(['controlsState', 'onroadEvents', 'managerState'])
|
||||
sm = messaging.SubMaster(['selfdriveState', 'onroadEvents', 'managerState'])
|
||||
q = Queue()
|
||||
bridge = self.create_bridge()
|
||||
p_bridge = bridge.run(q, retries=10)
|
||||
@@ -63,7 +63,7 @@ class TestSimBridgeBase:
|
||||
while time.monotonic() < start_time + max_time_per_step:
|
||||
sm.update()
|
||||
|
||||
if sm.all_alive() and sm['controlsState'].active:
|
||||
if sm.all_alive() and sm['selfdriveState'].active:
|
||||
control_active += 1
|
||||
|
||||
if control_active == min_counts_control_active:
|
||||
|
||||
Reference in New Issue
Block a user