You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
707 B
34 lines
707 B
3 years ago
|
from typing import Dict
|
||
|
|
||
|
from cereal import car
|
||
|
from selfdrive.car import dbc_dict
|
||
|
from selfdrive.car.docs_definitions import CarInfo
|
||
|
Ecu = car.CarParams.Ecu
|
||
|
|
||
|
|
||
|
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),
|
||
|
}
|
||
|
|
||
|
FW_VERSIONS = {
|
||
|
CAR.BODY: {
|
||
|
(Ecu.engine, 0x720, None): [
|
||
|
b'02/27/2022'
|
||
|
],
|
||
|
},
|
||
|
}
|
||
|
|
||
|
DBC = {
|
||
|
CAR.BODY: dbc_dict('comma_body', None),
|
||
|
}
|