Files
HardCompound/src/lapinfo.h

37 lines
620 B
C
Raw Normal View History

2026-01-08 21:15:55 +01:00
#ifndef LAPINFO_H
#define LAPINFO_H
#include <stdint.h>
#include "arrays.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;
float_array throttle_pos;
float_array brake_pos;
float_array steering_pos; // freq: 100
float_array speed;
} LapInfo;
void free_telemetry_info(TelemetryInfo *t);
void destroyLapinfo(LapInfo *info);
2026-01-08 21:15:55 +01:00
#endif