This commit is contained in:
Devson Butani 2024-07-19 14:55:31 -04:00 committed by GitHub
commit 8ba3ecfa49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ def HighStateHandler(msg: SportModeState_):
if __name__ == "__main__":
ChannelFactoryInitialize(0, "enp3s0")
if len(sys.argv)>1:
ChannelFactoryInitialize(0, sys.argv[1])
else:
ChannelFactoryInitialize(0)
sub = ChannelSubscriber("rt/sportmodestate", SportModeState_)
sub.Init(HighStateHandler, 10)