Skip to content

Commit d80c1fd

Browse files
authored
Merge pull request #28 from zorrobyte/patch-1
Was wrong about safetyparam
2 parents 4b85a08 + 3df0758 commit d80c1fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opendbc/toyota_prius_2017_pt_generated.dbc

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ BO_ 581 GAS_PEDAL: 8 XXX
314314
SG_ GAS_PEDAL : 23|8@0+ (0.005,0) [0|1] "" XXX
315315

316316
BO_ 608 STEER_TORQUE_SENSOR: 8 XXX
317-
SG_ STEER_TORQUE_EPS : 47|16@0- (0.55,0) [-20000|20000] "" XXX
317+
SG_ STEER_TORQUE_EPS : 47|16@0- (0.66,0) [-20000|20000] "" XXX
318318
SG_ STEER_TORQUE_DRIVER : 15|16@0- (1,0) [-32768|32767] "" XXX
319319
SG_ STEER_OVERRIDE : 0|1@0+ (1,0) [0|1] "" XXX
320320
SG_ CHECKSUM : 63|8@0+ (1,0) [0|255] "" XXX

selfdrive/car/toyota/interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_params(candidate, fingerprint, vin="", is_panda_black=False):
7070

7171
if candidate == CAR.PRIUS:
7272
stop_and_go = True
73-
ret.safetyParam = 55 # see conversion factor for STEER_TORQUE_EPS in dbc file
73+
ret.safetyParam = 66 # see conversion factor for STEER_TORQUE_EPS in dbc file
7474
ret.wheelbase = 2.70
7575
ret.steerRatio = 14.0 # unknown end-to-end spec
7676
tire_stiffness_factor = 0.725 # hand-tune

0 commit comments

Comments
 (0)