|
|
@ -42,7 +42,12 @@ class TestStartup(unittest.TestCase): |
|
|
|
# TODO: this should be done without any real sockets |
|
|
|
# TODO: this should be done without any real sockets |
|
|
|
controls_sock = messaging.sub_sock("controlsState") |
|
|
|
controls_sock = messaging.sub_sock("controlsState") |
|
|
|
pm = messaging.PubMaster(['can', 'health']) |
|
|
|
pm = messaging.PubMaster(['can', 'health']) |
|
|
|
Params().put("CommunityFeaturesToggle", b"1" if toggle_enabled else b"0") |
|
|
|
|
|
|
|
|
|
|
|
params = Params() |
|
|
|
|
|
|
|
params.clear_all() |
|
|
|
|
|
|
|
params.put("Passive", b"0") |
|
|
|
|
|
|
|
params.put("OpenpilotEnabledToggle", b"1") |
|
|
|
|
|
|
|
params.put("CommunityFeaturesToggle", b"1" if toggle_enabled else b"0") |
|
|
|
|
|
|
|
|
|
|
|
time.sleep(2) # wait for controlsd to be ready |
|
|
|
time.sleep(2) # wait for controlsd to be ready |
|
|
|
|
|
|
|
|
|
|
|