From f7089b71b90cced622a5ae8ec1683313569b0dc4 Mon Sep 17 00:00:00 2001 From: Tici Date: Mon, 17 Aug 2020 10:15:17 +0000 Subject: [PATCH] relay test --- tests/relay_test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/relay_test.py diff --git a/tests/relay_test.py b/tests/relay_test.py new file mode 100755 index 000000000..68789b17c --- /dev/null +++ b/tests/relay_test.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +import time +from panda import Panda + +p = Panda() + +while True: + p.set_safety_mode(Panda.SAFETY_TOYOTA) + p.send_heartbeat() + print("ON") + time.sleep(1) + p.set_safety_mode(Panda.SAFETY_NOOUTPUT) + p.send_heartbeat() + print("OFF") + time.sleep(1) +