bit-bots / humanoid_league_misc

MIT License
0 stars 2 forks source link

Remove rate in game controller #82

Closed timonegk closed 3 years ago

timonegk commented 3 years ago

Proposed changes

This PR removes the rate from our game controller client. The rate limited the game controller message to 5 Hz leading to a growing message queue because the game controller publishes udp messages with 20 Hz. Receiving from the socket is blocking, therefore no queue is actually needed.

Necessary checks

Flova commented 3 years ago

You might want to add a minimal system sleep call.

timonegk commented 3 years ago

No, as I said, recvfrom is blocking, no sleep is necessary.

Flova commented 3 years ago

Ah nvm