mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-02 02:43:56 +08:00
* rough draft
* plotjuggler and carla description
* testing someting
* this is cool
* very short replay and debug desc
* small change
* small change 2
* better word
* low quality mode
* better word
* fixes
* changes
* minor fixes
* ubuntu_setup fix + README changes
* Update tools/README.md
* Update README.md
* Update README.md
* Update README.md
* changes
* Update tools/sim/README.md
* final changes
* final change
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c4031750f3
27 lines
915 B
Markdown
27 lines
915 B
Markdown
Debug car controls
|
|
-------------
|
|
|
|
**Hardware needed**: [panda](panda.comma.ai), [giraffe](https://comma.ai/shop/products/giraffe/), joystick
|
|
|
|
Use the panda's OBD-II port to connect with your car and a usb cable to connect the panda to your pc.
|
|
Also, connect a joystick to your pc.
|
|
|
|
`joystickd.py` runs a deamon that reads inputs from a joystick and publishes them over zmq.
|
|
`boardd` sends the CAN messages from your pc to the panda.
|
|
`debug_controls` is a mocked version of `controlsd.py` and uses input from a joystick to send controls to your car.
|
|
|
|
Make sure the conditions are met in the panda to allow controls (e.g. cruise control engaged). You can also make a modification to the panda code to always allow controls.
|
|
|
|
Usage:
|
|
```
|
|
python carcontrols/joystickd.py
|
|
|
|
# In another terminal:
|
|
BASEDIR=$(pwd) selfdrive/boardd/boardd
|
|
|
|
# In another terminal:
|
|
python carcontrols/debug_controls.py
|
|
|
|
```
|
|

|