Skip to content

Struggling to Modify and Visualize State Variables #153

Answered by slowlydev
f1bug asked this question in Q&A
Discussion options

You must be logged in to vote

Yes when recording a session we get the direct raw data from f1. In the beginning we get a message with an object that has a property named R. This message is the initial state f1 sends us. Every message after this first initial state is a partial update.

In the live backend saves the initial state and applies all the updates. In the process we format the JSON from PascalCase to camalCase. And we send the initial state and then the updates to the frontend.

These updates get applied via the merge functions in both the backend and frontend.

dash/src/lib/merge.ts - frontend
crates/data/src/merge.rs - backend

Initially, I thought this was the exact format in which F1 transfers data, but base…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@f1bug
Comment options

@slowlydev
Comment options

Answer selected by slowlydev
@f1bug
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants