mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 21:13:42 +08:00
e85f40d18b
Adds the GWM brand (Haval H6 2019-26, full ACC/steering support): - opendbc/car/gwm: brand interface, carstate, carcontroller, gwmcan, values (adapted to sunnypilot CP_SP API and deprecated field group) - car.capnp: SafetyModel.gwm @36 - values.py: GWM in the Platform union - docs_definitions.py: CarHarness.gwm - safety: gwm.h, SAFETY_GWM 36, registration (behind ALLOW_DEBUG) - dbc generator for gwm_haval_h6_mk3, torque params for GWM_HAVAL_H6 - car_list.json: Haval H6 now appears in the vehicle selector - rebuilt panda firmware with the GWM safety mode (DEV-dc833705)
Programming
./flash.py # flash application
./recover.py # flash bootstub
Debugging
To print out the serial console from the STM32, run tests/debug_console.py
Troubleshooting
If your panda will not flash and green LED is on, use recover.py.
If panda is blinking fast with green LED, use flash.py.
Otherwise if LED is off and panda can't be seen with lsusb command, use panda paw to go into DFU mode.
If your device has an internal panda and none of the above works, try running ../scripts/reflash_internal_panda.py.