Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools/Joystick now working properly #34255

Open
vcs-vct opened this issue Dec 16, 2024 · 0 comments
Open

Tools/Joystick now working properly #34255

vcs-vct opened this issue Dec 16, 2024 · 0 comments

Comments

@vcs-vct
Copy link

vcs-vct commented Dec 16, 2024

I checked out the master branch of openpilot. My plan was to use a joystick to control a 2021 Kia Telluride. I calibrated and ran openpilot on public road. I used Comma 3X and everything on public road with openpilot was fine.

I followed exact procedures in README to run joystick with keyboard.

"The car must be off, and openpilot must be offroad before starting joystick_control.

Using a keyboard
SSH into your comma device and start joystick_control with the following command:

tools/joystick/joystick_control.py --keyboard
The available buttons and axes will print showing their key mappings. In general, the WASD keys control gas and brakes and steering torque in 5% increments."

Once I started the vehicle, I got the following error
"
Killing old publisher: testJoystick
Exception in thread Thread-1 (send_thread):
Traceback (most recent call last):
File "/usr/local/uv/python/cpython-3.12.3-linux-aarch64-gnu/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/local/uv/python/cpython-3.12.3-linux-aarch64-gnu/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/data/openpilot/tools/joystick/joystick_control.py", line 107, in send_thread
pm.send('testJoystick', joystick_msg)
File "/data/pythonpath/cereal/messaging/init.py", line 258, in send
self.sock[s].send(dat)
File "msgq_repo/msgq/ipc_pyx.pyx", line 242, in msgq.ipc_pyx.PubSocket.send
raise MultiplePublishersError
msgq.ipc_pyx.MultiplePublishersError: Messaging failure : Address already in use
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant