• Welcome to PiBoSo Official Forum. Please login or sign up.
 
April 28, 2024, 04:56:18 PM

data live timing

Started by Ricoway46, November 11, 2023, 07:38:10 PM

Previous topic - Next topic

Ricoway46

November 11, 2023, 07:38:10 PM Last Edit: November 14, 2023, 02:36:13 PM by Ricoway46
Hi PiBoSo,

i'm trying to read live timing data from a dedicated server. I'm stuck on the CLASSIFICATION message. Specifically some lines for various sessions that i can't map.

I'm resuming the block of lines from your post:

CLASSIFICATION
Session
Status
Session Timer (milliseconds)
Session Length (minutes)
Session Lap
Number of Laps
for each entry:
    Race Number
    if the session is practice (practice, qualify, warmup)
        Best Lap (milliseconds)

        if the best lap is not zero
            Lap Number
            Total Laps
            Gap (milliseconds, -- if zero)
            Speed Trap (meters/s)
        endif
    else
        Race Time (milliseconds) or Status (DNS/DSQ)

        if Race Time is not zero
            Lap Number
            Gap (milliseconds or L if lapped)
        endif
    endelse

    Bike Status (TRK/PIT)
endfor
Empty string after the last entry

For practice, I receive this:

CLASSIFICATION
PRACTICE <- session
INPROGRESS <- status
300000 <- timer
5 <- session length
1 <- session lap
0 <- number of laps
1 <- ?
1 <- ?
1 <- ?
94 <- number rider
107619 <- best lap
1 <- lap number
1 <- total laps
-- <- gap
278.9 <- speed trap
TRK <- bike status

What are the three 1s? The same question applies to the qualify.

For the race instead:

CLASSIFICATION
RACE <- session
INPROGRESS <- status
133409 <- timer
0 <- length
1 <- lap
3 <- number of laps
2 <- ?
1 <- ?
1 <- ?
94 <- number rider
101801 <- race time
1 <- lap number
-- <- gap
-- <- ?

Here is also a final --. Additionally, the bike status (TRK/PIT) does not seem to be present.

Edit: Is it possible that the final "--" is it the status that is null in the race?

Thank you.

Ricoway46

I also add a request:

from what the SPLIT messages return I see 0, 1 or 2 so when the lap has already started. Would it be possible to also add when a driver starts the lap? For example:

SPLIT
94
INIT
---

Thank you

Ricoway46

It's still me ;D  I would ask another request if possible:

Would it be possible to add the best of the various splits in CLASSIFICATION for each rider in addition to the best lap?

Thank you

PiBoSo

"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo

Quote from: Ricoway46 on November 12, 2023, 02:42:44 PMI also add a request:

from what the SPLIT messages return I see 0, 1 or 2 so when the lap has already started. Would it be possible to also add when a driver starts the lap? For example:

SPLIT
94
INIT
---

Thank you

Ok, added to the TODO list.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

Ricoway46

Fantastic! Thank you very much  :D

PiBoSo

Quote from: Ricoway46 on November 13, 2023, 09:21:47 PMIt's still me ;D  I would ask another request if possible:

Would it be possible to add the best of the various splits in CLASSIFICATION for each rider in addition to the best lap?

Thank you

Just for the "practice" sessions, or race, too?
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

Ricoway46

November 16, 2023, 02:20:23 PM #7 Last Edit: November 16, 2023, 03:01:10 PM by Ricoway46
Quote from: PiBoSo on November 16, 2023, 02:17:03 PM
Quote from: Ricoway46 on November 13, 2023, 09:21:47 PMIt's still me ;D  I would ask another request if possible:

Would it be possible to add the best of the various splits in CLASSIFICATION for each rider in addition to the best lap?

Thank you

Just for the "practice" sessions, or race, too?

Since you have to modify it anyway, it would be nice to have it also in the RACE as well at this point! If it's not a problem, of course!

Thank you very much.