version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
25 lines
691 B
Markdown
25 lines
691 B
Markdown
# Run openpilot with webcam on PC
|
|
|
|
## Setup openpilot
|
|
- Follow [this readme](../README.md) to install and build the requirements
|
|
|
|
## Connect the hardware
|
|
- Connect the camera first
|
|
- Connect your computer to panda
|
|
|
|
## GO
|
|
|
|
```
|
|
USE_WEBCAM=1 openpilot/system/manager/manager.py
|
|
```
|
|
- Start the car, then the UI should show the road webcam's view
|
|
- Adjust and secure the webcam
|
|
- Finish calibration and engage!
|
|
|
|
## Specify Cameras
|
|
|
|
Use the `ROAD_CAM` (default 0) and optional `DRIVER_CAM`, `WIDE_CAM` environment variables to specify which camera is which (ie. `ROAD_CAM=1` uses `/dev/video1`, on Ubuntu, for the road camera):
|
|
```
|
|
USE_WEBCAM=1 ROAD_CAM=1 openpilot/system/manager/manager.py
|
|
```
|