Skip to content

Commit 9fe71a4

Browse files
ZwX1616spektor56
authored andcommitted
fix carla test fake driverState (commaai#24959)
use driverstatev2
1 parent 290b1ce commit 9fe71a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/sim/bridge.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ def gps_callback(gps, vehicle_state):
206206

207207

208208
def fake_driver_monitoring(exit_event: threading.Event):
209-
pm = messaging.PubMaster(['driverState', 'driverMonitoringState'])
209+
pm = messaging.PubMaster(['driverStateV2', 'driverMonitoringState'])
210210
while not exit_event.is_set():
211211
# dmonitoringmodeld output
212-
dat = messaging.new_message('driverState')
213-
dat.driverState.faceProb = 1.0
214-
pm.send('driverState', dat)
212+
dat = messaging.new_message('driverStateV2')
213+
dat.driverStateV2.leftDriverData.faceProb = 1.0
214+
pm.send('driverStateV2', dat)
215215

216216
# dmonitoringd output
217217
dat = messaging.new_message('driverMonitoringState')

0 commit comments

Comments
 (0)