adding virtual fields

This commit is contained in:
2026-05-25 16:43:41 +01:00
parent c512d79d98
commit 7091561ed9
6 changed files with 25 additions and 4 deletions
+7
View File
@@ -17,8 +17,14 @@ type FieldMapper struct {
Transform func(any) uint64
}
// VirtualField will define data that is acquired through middleware
// So fuel per lap predictions and so on
type VirtualField struct {
}
// NOTE: Update the iracing SDK to write data to the same map ALWAYS, then
// I can bind that address and read directly from there on the transform
type BoundField struct {
Key string
ID FieldID
@@ -219,6 +225,7 @@ func GetFieldID(name string) (FieldID, bool) {
type TelemetryData struct {
Values [MaxFields]TelemetryField
ActiveBinds []BoundField
VirtualBinds []VirtualField
InitialTime time.Time
PenultimateDataPoll time.Time
LastDataPoll time.Time