set pandaType in debug scripts (#22897)
old-commit-hash: 6b20118fec281d88742a6c4b669eaca0bd3aac05
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import time
|
||||
|
||||
from cereal import car
|
||||
from cereal import car, log
|
||||
import cereal.messaging as messaging
|
||||
from selfdrive.car.honda.interface import CarInterface
|
||||
from selfdrive.controls.lib.events import ET, EVENTS, Events
|
||||
@@ -63,6 +63,7 @@ def cycle_alerts(duration=2000, is_metric=False):
|
||||
|
||||
dat = messaging.new_message('pandaStates', 1)
|
||||
dat.pandaStates[0].ignitionLine = True
|
||||
dat.pandaStates[0].pandaType = log.PandaState.PandaType.uno
|
||||
pm.send('pandaStates', dat)
|
||||
|
||||
time.sleep(0.01)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import time
|
||||
import cereal.messaging as messaging
|
||||
from cereal import messaging, log
|
||||
from selfdrive.manager.process_config import managed_processes
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -17,6 +17,7 @@ if __name__ == "__main__":
|
||||
|
||||
msgs['pandaStates'] = messaging.new_message('pandaStates', 1)
|
||||
msgs['pandaStates'].pandaStates[0].ignitionLine = True
|
||||
msgs['pandaStates'].pandaStates[0].pandaType = log.PandaState.PandaType.uno
|
||||
|
||||
try:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user