newExponentialSmoothingT
Definition
-- @/lua/common/filters.lua:503
function newExponentialSmoothingT(window, window2, startingValue)
startingValue = startingValue or 0
local data = {a = 2 / max(window, 2), a2 = 2 / max(window2 or math.huge, 2), startingValue = startingValue, st = startingValue, [true] = 0, [false] = 0}
return setmetatable(data, exponentialSmoothingT)
end
Callers
@/lua/vehicle/protocols.lua
velXSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velX" ))
velYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velY" ))
velXSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velX" ))
velYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velY" ))
velZSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velZ" ))
velYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velY" ))
velZSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_velZ" ))
accXSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accX" ))
accYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accY" ))
accXSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accX" ))
accYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accY" ))
accZSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accZ" ))
accYSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accY" ))
accZSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_accZ" ))
rollPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollPos" ))
pitchPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchPos"))
rollPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollPos" ))
pitchPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchPos"))
yawPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawPos" ))
pitchPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchPos"))
yawPosSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawPos" ))
rollVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollVel" ))
pitchVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchVel"))
rollVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollVel" ))
pitchVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchVel"))
yawVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawVel" ))
pitchVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchVel"))
yawVelSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawVel" ))
rollAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollAcc" ))
pitchAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchAcc"))
rollAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_rollAcc" ))
pitchAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchAcc"))
yawAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawAcc" ))
pitchAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_pitchAcc"))
yawAccSmoother = newExponentialSmoothingT(settings.getValue("protocols_smoothing_yawAcc" ))
end
@/lua/vehicle/hydros.lua
-- local FFBsmooth = newExponentialSmoothing(wheelFFBSmoothing)
local FFBsmooth = newExponentialSmoothingT(wheelFFBSmoothing, wheelFFBSmoothing2)
local FFBHydros = {}