Extend torqued (#25961)

* extend live torque to all hyundai and toyota cars

* update refs
This commit is contained in:
Vivek Aithal
2022-10-04 13:34:31 -07:00
committed by GitHub
parent 84adb8d925
commit ca746b0a18
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -12,7 +12,6 @@ from common.realtime import config_realtime_process, DT_MDL
from common.filter_simple import FirstOrderFilter
from system.swaglog import cloudlog
from selfdrive.controls.lib.vehicle_model import ACCELERATION_DUE_TO_GRAVITY
from selfdrive.car.toyota.values import CAR as TOYOTA
HISTORY = 5 # secs
POINTS_PER_BUCKET = 1500
@@ -33,7 +32,7 @@ MAX_INVALID_THRESHOLD = 10
MIN_ENGAGE_BUFFER = 2 # secs
VERSION = 1 # bump this to invalidate old parameter caches
ALLOWED_FINGERPRINTS = [TOYOTA.COROLLA_TSS2, TOYOTA.COROLLA, TOYOTA.COROLLAH_TSS2]
ALLOWED_CARS = ['toyota', 'hyundai']
def slope2rot(slope):
@@ -98,7 +97,7 @@ class TorqueEstimator:
self.offline_friction = 0.0
self.offline_latAccelFactor = 0.0
self.resets = 0.0
self.use_params = CP.carFingerprint in ALLOWED_FINGERPRINTS
self.use_params = CP.carName in ALLOWED_CARS
if CP.lateralTuning.which() == 'torque':
self.offline_friction = CP.lateralTuning.torque.friction
+1 -1
View File
@@ -1 +1 @@
653fbfeac952c288ffd595ee13139b9547b998bf
1989d8c2a5de94faa3756b7d10fc94e6c063afa5