mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 22:12:05 +08:00
433fcc0c71
* Add harness information * test harness enum * add harness info for tucson * update Tucson harness * get rid of development * make global enum * fix * add harness info * add harness info to CARS.md (since we need multiple lines per HKG platform) * revert this * Actively Maintained means something! (aka, to bronze with select VW) * fix caravelle * add harness tooltip on maintained column fix * lol tubaru * always assume harness * update honda harnesses * add Ioniq hybrid 2017-19 harness, todo: not sure * unused import * hmm, did they really switch to the C for 1 year?? * add comment * add comments * adding tooltips should be fine * fix santa fe harness * welcome back, vw * no need for two harness strings * seems fine * fix 19-20 Niro EV harness * these were taking from old database, so assume correct * could be d * pass all car info into template * no more tool tips * these use j533 harnesses * accidentally got removed in merge * also merge issue * don't need these * make harness non-optional
39 lines
870 B
Python
39 lines
870 B
Python
from typing import Dict
|
|
|
|
from cereal import car
|
|
from selfdrive.car import dbc_dict
|
|
from selfdrive.car.docs_definitions import CarInfo, Harness
|
|
Ecu = car.CarParams.Ecu
|
|
|
|
SPEED_FROM_RPM = 0.008587
|
|
|
|
class CarControllerParams:
|
|
ANGLE_DELTA_BP = [0., 5., 15.]
|
|
ANGLE_DELTA_V = [5., .8, .15] # windup limit
|
|
ANGLE_DELTA_VU = [5., 3.5, 0.4] # unwind limit
|
|
LKAS_MAX_TORQUE = 1 # A value of 1 is easy to overpower
|
|
STEER_THRESHOLD = 1.0
|
|
|
|
class CAR:
|
|
BODY = "COMMA BODY"
|
|
|
|
CAR_INFO: Dict[str, CarInfo] = {
|
|
CAR.BODY: CarInfo("comma body", package="All", good_torque=True, harness=Harness.none),
|
|
}
|
|
|
|
FW_VERSIONS = {
|
|
CAR.BODY: {
|
|
(Ecu.engine, 0x720, None): [
|
|
b'0.0.01',
|
|
b'02/27/2022'
|
|
],
|
|
(Ecu.debug, 0x721, None): [
|
|
b'166bd860' # git hash of the firmware used
|
|
],
|
|
},
|
|
}
|
|
|
|
DBC = {
|
|
CAR.BODY: dbc_dict('comma_body', None),
|
|
}
|