compile commands, working on storing the database data and refactoring the code to read the data

This commit is contained in:
2026-01-02 20:01:19 +01:00
parent 68b774e296
commit ebd4fceda0
8 changed files with 148 additions and 69 deletions

31
src/lapinfo.h Normal file
View File

@@ -0,0 +1,31 @@
#pragma once
#include <stdint.h>
typedef enum {
BOOL,
INT,
FLOAT,
DOUBLE,
} TelemetryDataType;
typedef struct {
TelemetryDataType type;
int8_t frequency;
void *data;
uint64_t *validity;
uint32_t data_size;
uint32_t data_last_index;
} TelemetryInfo;
typedef struct {
int lap_number;
double start_time;
TelemetryInfo throttle_pos; // freq: 50
TelemetryInfo brake_pos; // freq: 50
TelemetryInfo steering_pos; // freq: 100
TelemetryInfo speed;
} LapInfo;
void free_telemetry_info(TelemetryInfo *t);
void destroyLapinfo(LapInfo *info);