Skip to content

myupctoys/AFR-Data-Sets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFR Data Set

Representative sample set from an AFR run. Note AFR's levels are low because the car is running E85 (9.76). 98 would be typically somewhere below 14.7

This run was lean for most of the map but it is a good representation of the type of data set one might get from a logging run, including missing data points and areas of operation the car never gets into. Of specific interest to me is plotting on a 3D chart the relationship of the data points using chart based on this article.

https://www.codeproject.com/Articles/5293980/Editor3D-A-Windows-Forms-Render-Control-with-inter

Logging was done with Innovate MotorSport LM2 Wideband O2 with the csv derived from the logworks software available for thier product. I will make no comment on the Innovate Motorsport LM2 product other than it has one redeeming feature, very fast AFR update rates. Image of the data set from their software.

image

csv file is raw data from the logger.
afrs.dat is just the average AFR values in an X/Y array.
rpm_map_afr.dat are all the specs derived from the origional csv data set.
D32 file is the origional Innovate MotorSport logging file extracted from the SD card.

Hope for the plot

What I'm hoping for with the software is a partial 3D rendition of the above 2D array of data. This data set is incomplete purely as a function of the way a car might operate. While it is vehicle specific, there are many examples in the real world where there would be incomplete data sets one might want to be able to get a feel for in the third dimension. Physics experiments, tomography, point clouds etc etc.

The problem with the first image is the "zero" data points and the polygon surface corresponding to the surrounding "real" data point distorts the polygon surface "trend for want of a better word" visually. The second image is the same data set, with the 0 data points changed to an average of the array, array drawn, then the original 0 data points (now an average) deleted. Note still not valid but intuitively feels closer.

Currently the above 2D data array looks like below.

Below is closer to what I hope for. Still not right but closer.

Problem defined

Note the following arrays show the data points and the coloured corrpesonding polygon surface relating to the surrounding data points.

Baseline Scenario


Above data set corresponds visually to a flat surface set of polygons. Makes sense.

Scenario #1


We lose one data point at the edge of an array, corresponds to two polygon surfaces being altered.

Scenario #2


Still only the loss of one data point but in the middle of the array, we loose detail on four polygon surfaces.

Scenario #3


With the loss of two data points we lose surface polygon detail from 8 squares.

Summary

While the charting software can only but run with the data presented to it, as far as it’s concerned a zero value being just as valid a data point as any other value. Understand the fact that each polygon is defined by the four surrounding data points, and my question was based around how to get around the visual problem if one of them was zero, in the case of the sample set, missing.

Simple enough to delete all the zero points but one also looses a lot of the surface polygon visual information from points that are valid (as shown above), especially when that data set might have a lot of edge cases and one-off isolated data points that are missing as detailed above.
Full data set then the chart is perfect. Partial data set and quite a bit of visual content is lost if deleted, or at best visually distorting the real data points that surround an unwanted data point to up to 4 polygon surfaces per missing data point.
My question was to ask for thoughts on the topic. Which was answered to my satisfaction in so far as the four data points being needed to define that polygon therefore deleting or modifying that data point wasn’t a solution if polygon surfaces were part of the picture.

The problem isn’t with the software, more that the current approach with the software, if missing data points needed to be catered for; isn’t a solution.

A possible solution to this scenario might be each XY "point" is defined by four points to define a polygon surface with an additional Z axis parameter that would be the plotted polygon magnitude. The surrounding four points woudl be loosely tied to the Z axis paramter. That way the Z axis point could be deleted with no impact on the adjoining Z axis points as each Z axis point has its own set of four points defineing its own polygon. Additionally those four points could feasbily be modified to matching adjoinging polygons improving surface visual integrity. There would be no loss of detail simply because one point was missing.

About

XAxis RPM, YAxis Map (as Volts) ZAxis AFR Sample set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published