set pandaType in debug scripts (#22897)

pull/22902/head
Dean Lee 4 years ago committed by GitHub
parent db92006dc0
commit 6b20118fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/debug/cycle_alerts.py
  2. 3
      selfdrive/debug/uiview.py

@ -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:

Loading…
Cancel
Save