Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.05 KB

DataFeedFilters.md

File metadata and controls

30 lines (17 loc) · 1.05 KB

##Data Feed Filters

The following describes a set of extension methods to the enumeration IEnumerable<DataSample> to enhance and refine some of the game's data stream.

They can each be applied to a IEnumerable<DataSample> and return an IEnumerable<DataSample>.

The filters can be chained together.

###WithCorrectedPercentages

public static IEnumerable<DataSample> WithCorrectedPercentages(this IEnumerable<DataSample> samples)

Work around what appears to be a bug in the iRacing data stream, where cars' lap percentage is reported slightly behind - so that as the cars cross the start/finish line, their percentage still is in the 99% range, a frame later, their percentage drops to near 0%.

Details

###WithCorrectedDistances

public static IEnumerable<DataSample> WithCorrectedDistances(this IEnumerable<DataSample> samples)

Corrects a car's lap and distance values, when there is a momentary network dropout for the cars' data feed.

Details