«

How to modify the code of openpilot so that any fork can run on c3 lite

一先生 • 14 天前 • 327 次点击 •


Reasons that affect the operation of any fork on c3 lite:
1. There is no 4g module, which causes the device to be stuck when registering to the Internet because the IMEI cannot be detected.
2. There is no driver monitoring camera, which causes the driver monitoring camera error prompt to pop up when openpilot is running

Once we know the cause, we can prescribe the right remedy.

Let's take the official openpilot master branch as an example.
1. Modify system/athena/registration.py and insert "return UNREGISTERED_DONGLE_ID" at the location shown in the figure

image.png

2.Modify selfdrive/selfdriven/selfdriven.py

First, add a line "ignore += ['driverCameraState', 'managerState', 'driverMonitoringState']"

image.png

Step 2: Add pass# to the location shown in the figure

image.png

Step 3: Add pass# to the location shown in the figure

image.png

 

还没收到回复