Tutorial
๐ Example Use Cases#
Scenario | Function |
---|---|
Throttle Delta | return($Throttle - $ThrottleRef) |
Lap Time Marker | if ($Speed < 5) SetMarker("Lap Start") |
Filtered RPM | return(Filter($RPM, 5)) |
Interpolated Map | return(BiLinearInterpolate("map.3d", $X, $Y)) |
๐งช Worked Tutorial: Filtering Noisy RPM Data#
Objective#
Smooth out high-frequency noise in the RPM signal using a low-pass filter. This is useful for improving the readability of engine speed data and reducing transient spikes that may obscure trends.
Step-by-Step#
- Open the Function Editor
-
Navigate to
View > Function Editor
or click the Function Editor icon on the toolbar. -
Create a New Function
-
Use
File > New
or pressCtrl + N
. -
Configure General Properties
- Name:
FilteredRPM
- Units:
rpm
- Format:
%5.0f
-
Display Min/Max:
0
to10000
(adjust based on expected RPM range) -
Configure Function Properties
- Function Mode:
Instantaneous
- Calculation Mode:
Fixed frequency
- Calculation Frequency (Hz):
100
> ๐ TODO: Confirm optimal frequency for RPM filtering based on your data sampling rate. - Interpolate Between Samples: Enabled
-
Join Gaps Around Null: Enabled
-
Write the Function Code
return(Filter($RPM, 5))