|
|
@ -52,7 +52,7 @@ class TorqueBuckets(PointBuckets): |
|
|
|
class TorqueEstimator(ParameterEstimator): |
|
|
|
class TorqueEstimator(ParameterEstimator): |
|
|
|
def __init__(self, CP, decimated=False, track_all_points=False): |
|
|
|
def __init__(self, CP, decimated=False, track_all_points=False): |
|
|
|
self.hist_len = int(HISTORY / DT_MDL) |
|
|
|
self.hist_len = int(HISTORY / DT_MDL) |
|
|
|
self.lag = CP.steerActuatorDelay + .2 # from controlsd |
|
|
|
self.lag = 0.0 |
|
|
|
self.track_all_points = track_all_points # for offline analysis, without max lateral accel or max steer torque filters |
|
|
|
self.track_all_points = track_all_points # for offline analysis, without max lateral accel or max steer torque filters |
|
|
|
if decimated: |
|
|
|
if decimated: |
|
|
|
self.min_bucket_points = MIN_BUCKET_POINTS / 10 |
|
|
|
self.min_bucket_points = MIN_BUCKET_POINTS / 10 |
|
|
|