joystick_ros2
joystick_ros2 copied to clipboard
Auto-repeat functionality not working
In my testing, the auto-repeat functionality was not working. It turned out that the I/O read was in blocking mode, so the event loop would be blocked unless new data was received (i.e. the data would never be stale).
This can be resolved by adding os.set_blocking(self._character_file.fileno(), False)
after the character file is initialized.