mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
torqued: useParams field reflects if using torque control (#30059)
fix useParams old-commit-hash: 61c5618f15a477d6aaa8dfaaf9803961db5081e6
This commit is contained in:
@@ -114,7 +114,7 @@ class TorqueEstimator:
|
||||
self.offline_friction = 0.0
|
||||
self.offline_latAccelFactor = 0.0
|
||||
self.resets = 0.0
|
||||
self.use_params = CP.carName in ALLOWED_CARS
|
||||
self.use_params = CP.carName in ALLOWED_CARS and CP.lateralTuning.which() == 'torque'
|
||||
|
||||
if CP.lateralTuning.which() == 'torque':
|
||||
self.offline_friction = CP.lateralTuning.torque.friction
|
||||
|
||||
Reference in New Issue
Block a user