New Math Functions

The math function “ValueAtDist” was added

ValueAtDist(<channel>; <dist> [; <LapIndex>])

  • If <LapIndex> is omitted, <dist> is the absolute distance value within the file.

ValueAtDist(<channel>; <xdist>-10)

returns the value 10m before the current position.

  • If <LapIndex> is given, the <dist> argument is a lap distance value.

ValueAtDist(<channel>; 100; LapIndex)

returns the value at position 100m of the current lap.

ValueAtDist(<channel>; lapdist; LapIndex-1)

returns the value at the lap position but in the previous lap.

The math function “ValueAtTime” was extended accordingly to ValueAtDist

ValueAtTime(<channel>; <time> [; <LapIndex>])

  • If <LapIndex> is omitted, <time> is the absolute time value within the file.

ValueAtTime(<channel>; <xtime>-10)

returns the value 10sec before the current position.

  • If <LapIndex> is given, the <time> argument is a lap time value.

ValueAtDist(<channel>; 10; LapIndex)

returns the value at position 10sec of the current lap.

ValueAtDist(<channel>; laptime; LapIndex-1)

returns the value at the same laptime position but in the previous lap.

Note: WinDarab optimizes the following usage pattern of ValueAtTime

ValueAtTime(<channel>; xtime-<delta>)

  • In this case WinDarab doesn’t calculate a “real” math channel. Instead WinDarab shifts the timeline accordingly and passes the channel data through – this is almost like accessing the original channel!