have wrong fuction name

This commit is contained in:
Ha1n1GzZZ 2024-06-08 11:31:06 +08:00
parent c8df8aaaf7
commit 3dfa3cd03a
2 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ input("Press enter to start")
if __name__ == '__main__':
if len(sys.argv) <2:
ChannelFactortyInitialize(1, "lo")
ChannelFactoryInitialize(1, "lo")
else:
ChannelFactortyInitialize(0, sys.argv[1])
ChannelFactoryInitialize(0, sys.argv[1])
# Create a publisher to publish the data defined in UserData class
pub = ChannelPublisher("rt/lowcmd", LowCmd_)

View File

@ -21,7 +21,7 @@ def LowStateHandler(msg: LowState_):
if __name__ == "__main__":
ChannelFactortyInitialize(1, "lo")
ChannelFactoryInitialize(1, "lo")
hight_state_suber = ChannelSubscriber("rt/sportmodestate", SportModeState_)
low_state_suber = ChannelSubscriber("rt/lowstate", LowState_)