PERRINN / project-424-unity

Simulation of the 424 in Unity using Vehicle Physics Pro
100 stars 51 forks source link

Telemetry File #74

Closed Maesla closed 2 years ago

Maesla commented 2 years ago

Telemetry File

This feature writes a csv file with telemetry data from the telemetry system. It can be found at ./Telemetry/ The first row of the csv corresponds to the headers. The second row corresponds to the units

FRAME,TIME,DISTANCE,TOTALTIME,TOTALDISTANCE,SEGMENTNUM,SECTOR,MARKERS,MARKERTIME,MARKERFLAG,POSITIONX,POSITIONY,POSITIONZ,ROTATIONX,ROTATIONY,ROTATIONZ,STEERINGANGLE,THROTTLE,BRAKEPRESSURE,GEAR,SPEED
n/a,s,m,s,m,n/a,n/a,n/a,n/a,n/a,m,m,m,°,°,°,°,%,bar,,km/h
11630.00000,-0.00026,-0.00909,23.26000,274.53280,1.00000,0.00000,0.00000,0.00000,0.00000,513.55960,139.29570,2356.75600,-2.24164,119.37270,-0.40631,82.84000,0.77481,0.00000,1.00000,35.53372
11640.00000,0.01974,0.71725,23.28000,275.25920,1.00000,0.00000,0.00000,0.00000,0.00000,514.20150,139.32350,2356.41600,-2.22501,119.20580,-0.54053,82.84000,0.77481,0.00000,1.00000,35.53372
11650.00000,0.03974,1.44761,23.30000,275.98950,1.00000,0.00000,0.00000,0.00000,0.00000,514.84610,139.35060,2356.07100,-2.21353,119.04490,-0.45319,82.84000,0.77481,0.00000,1.00000,36.67794
11660.00000,0.05974,2.18243,23.32000,276.72440,1.00000,0.00000,0.00000,0.00000,0.00000,515.49370,139.37620,2355.72300,-2.14993,118.91890,-0.40878,82.84000,0.77481,0.00000,1.00000,36.67794
11670.00000,0.07974,2.92188,23.34000,277.46380,1.00000,0.00000,0.00000,0.00000,0.00000,516.14830,139.40110,2355.37800,-2.06589,118.67030,-0.50812,82.84000,0.77481,0.00000,1.00000,36.67794
11680.00000,0.09974,3.66614,23.36000,278.20810,1.00000,0.00000,0.00000,0.00000,0.00000,516.80740,139.42480,2355.03100,-1.96277,118.38380,-0.44431,82.84000,0.77481,0.00000,1.00000,36.67794
11690.00000,0.11974,4.41445,23.38000,278.95640,1.00000,0.00000,0.00000,0.00000,0.00000,517.46510,139.44740,2354.67400,-1.85861,118.34020,0.00248,34.40000,1.00000,0.00000,1.00000,36.67794
11700.00000,0.13974,5.16853,23.40000,279.71040,1.00000,0.00000,0.00000,0.00000,0.00000,518.11190,139.47000,2354.28500,-1.78995,119.09080,0.57474,35.32000,1.00000,0.00000,1.00000,37.88224
11710.00000,0.15974,5.92888,23.42000,280.47080,1.00000,0.00000,0.00000,0.00000,0.00000,518.75840,139.49260,2353.88300,-1.75195,120.14900,0.58058,36.20000,1.00000,0.00000,1.00000,37.88224
11720.00000,0.17974,6.69514,23.44000,281.23710,1.00000,0.00000,0.00000,0.00000,0.00000,519.40630,139.51580,2353.47300,-1.75143,121.26670,0.53820,37.90000,1.00000,0.00000,1.00000,37.88224
11730.00000,0.19974,7.46719,23.46000,282.00910,1.00000,0.00000,0.00000,0.00000,0.00000,520.05510,139.54040,2353.05400,-1.80524,122.39770,0.65682,38.84000,1.00000,0.00000,1.00000,37.88224
11740.00000,0.21974,8.24487,23.48000,282.78680,1.00000,0.00000,0.00000,0.00000,0.00000,520.70460,139.56670,2352.62500,-1.90424,123.53670,0.78382,39.94000,1.00000,0.00000,1.00000,37.88224
11750.00000,0.23974,9.02718,23.50000,283.56910,1.00000,0.00000,0.00000,0.00000,0.00000,521.35390,139.59430,2352.18800,-2.01529,124.64460,0.87752,40.78000,1.00000,0.00000,1.00000,39.24201
11760.00000,0.25974,9.81403,23.52000,284.35600,1.00000,0.00000,0.00000,0.00000,0.00000,522.00290,139.62280,2351.74200,-2.11276,125.69120,0.89502,41.26000,1.00000,0.00000,1.00000,39.24201
11770.00000,0.27974,10.60520,23.54000,285.14710,1.00000,0.00000,0.00000,0.00000,0.00000,522.65140,139.65170,2351.28800,-2.17908,126.64110,0.92072,41.40000,1.00000,0.00000,1.00000,39.24201
11780.00000,0.29974,11.40102,23.56000,285.94290,1.00000,0.00000,0.00000,0.00000,0.00000,523.30000,139.68100,2350.82700,-2.19910,127.46580,0.88165,41.10000,1.00000,0.00000,1.00000,39.24201
11790.00000,0.31974,12.20114,23.58000,286.74310,1.00000,0.00000,0.00000,0.00000,0.00000,523.94820,139.71100,2350.35600,-2.19528,128.19590,0.73117,40.36000,1.00000,0.00000,1.00000,39.24201

File types

The system writes three lap types

Metadata

Each csv file is bound to a metadata file. This file is a json file that contains information about the csv file

Example:

{
    "trackName": "424 Nordschleife Scene",
    "fileFormatVersion": 1,
    "frequency": 50,
    "lapIndex": 0,
    "lapTime": 312.66717529296877,
    "completed": true,
    "completedSectors": 5.0,
    "sectorsTime": [
        63.5655517578125,
        56.52471923828125,
        57.4166259765625,
        59.76750183105469,
        75.39279174804688
    ],
    "headers": [
        "FRAME",
        "TIME",
        "DISTANCE",
        "TOTALTIME",
        "TOTALDISTANCE",
        "SEGMENTNUM",
        "SECTOR",
        "MARKERS",
        "MARKERTIME",
        "MARKERFLAG",
        "POSITIONX",
        "POSITIONY",
        "POSITIONZ",
        "ROTATIONX",
        "ROTATIONY",
        "ROTATIONZ",
        "STEERINGANGLE",
        "THROTTLE",
        "BRAKEPRESSURE",
        "GEAR",
        "SPEED"
    ],
    "headerUnits": [
        "n/a",
        "s",
        "m",
        "s",
        "m",
        "n/a",
        "n/a",
        "n/a",
        "n/a",
        "n/a",
        "m",
        "m",
        "m",
        "°",
        "°",
        "°",
        "°",
        "%",
        "bar",
        "",
        "km/h"
    ],
    "count": 15633,
    "csvFile": "2021-12-29 18.57.11 UTC 05.12.667 ideal.csv",
    "timeStamp": 1640804231,
    "ideal": true,
    "idealSectorOrigin": [
        "2021-12-29 18.53.24 UTC 05.12.702.csv",
        "2021-12-29 18.53.24 UTC 05.12.702.csv",
        "2021-12-29 18.53.24 UTC 05.12.702.csv",
        "2021-12-29 18.50.53 UTC 05.12.805.csv",
        "2021-12-29 18.50.53 UTC 05.12.805.csv"
    ]
}

Main Components