Skip to content

Commit 4185f81

Browse files
authored
Lateral limits: test all torque cars (#1763)
* not really what i wanted * Revert "not really what i wanted" This reverts commit daafeea. * test all * use * mock * fix rivian
1 parent 338a3fd commit 4185f81

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

opendbc/car/rivian/values.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ class CAR(Platforms):
5050

5151
class CarControllerParams:
5252
STEER_MAX = 350
53-
STEER_DELTA_UP = 8 # torque increase per refresh
54-
STEER_DELTA_DOWN = 8 # torque decrease per refresh
53+
STEER_STEP = 1
54+
STEER_DELTA_UP = 4 # torque increase per refresh
55+
STEER_DELTA_DOWN = 6 # torque decrease per refresh
5556
STEER_DRIVER_ALLOWANCE = 15 # allowed driver torque before start limiting
5657
STEER_DRIVER_MULTIPLIER = 1 # weight driver torque
5758
STEER_DRIVER_FACTOR = 1
5859

5960
ACCEL_MIN = -3.48 # m/s^2
6061
ACCEL_MAX = 2.0 # m/s^2
6162

63+
def __init__(self, CP):
64+
pass
65+
6266

6367
DBC = CAR.create_dbc_map()

opendbc/car/tests/test_lateral_limits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def setup_class(cls):
2929
CarInterface, _, _, _ = interfaces[cls.car_model]
3030
CP = CarInterface.get_non_essential_params(cls.car_model)
3131

32-
if CP.dashcamOnly:
33-
pytest.skip("Platform is behind dashcamOnly")
32+
if cls.car_model == 'MOCK':
33+
pytest.skip('Mock car')
3434

3535
# TODO: test all platforms
3636
if CP.steerControlType != 'torque':

0 commit comments

Comments
 (0)