old-commit-hash: d4e8785355
commatwo_master
Comma Device 5 years ago
parent e23dcec07d
commit 46f4f3271d
  1. 8
      selfdrive/debug/cycle_alerts.py

@ -1,10 +1,12 @@
#!/usr/bin/env python3
# flake8: noqa
# pylint: skip-file
# type: ignore
import argparse
import time
import zmq
import cereal.messaging as messaging
from cereal.services import service_list
from selfdrive.controls.lib.events import EVENTS, Alert
def now_millis(): return time.time() * 1000
@ -41,7 +43,7 @@ def cycle_alerts(duration_millis, alerts=None):
#dat.controlsState.alertStatus = alert.alert_status
dat.controlsState.alertSound = alert.audible_alert
controls_state.send(dat.to_bytes())
time.sleep(0.01)
if __name__ == '__main__':

Loading…
Cancel
Save