mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
adding steering change from video and removing integer div and adding ki/kp changes
old-commit-hash: 942655c947
This commit is contained in:
@@ -127,7 +127,7 @@ def fingerprint(logcan):
|
||||
elif candidate_cars[0] == "HONDA ACCORD 2016 TOURING":
|
||||
ret.steerKp, ret.steerKi = 12.0, 1.0
|
||||
elif candidate_cars[0] == "HONDA CR-V 2016 TOURING":
|
||||
ret.steerKp, ret.steerKi = 12.0, 1.0
|
||||
ret.steerKp, ret.steerKi = 14.0, 1.67
|
||||
else:
|
||||
raise ValueError("unsupported car %s" % candidate_cars[0])
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ class CarController(object):
|
||||
GAS_MAX = 1004
|
||||
BRAKE_MAX = 1024/4
|
||||
if CS.crv:
|
||||
STEER_MAX = 0xFFF/2
|
||||
STEER_MAX = 0x380 # CR-V only uses 12-bits and requires a lower value
|
||||
else:
|
||||
STEER_MAX = 0xF00
|
||||
GAS_OFFSET = 328
|
||||
|
||||
Reference in New Issue
Block a user