compile commands, working on storing the database data and refactoring the code to read the data
This commit is contained in:
31
src/lapinfo.h
Normal file
31
src/lapinfo.h
Normal 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);
|
||||
Reference in New Issue
Block a user