mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-05-25 12:31:27 +02:00
feat(telemetry): Memoria de estado (CarState) y limpieza para test de Temperatura
- Creada la estructura 'CarState' para que el ESP32 no se olvide de los datos entre mensajes. - Comentados todos los cálculos que no sean usados para ahorrar recursos.
This commit is contained in:
parent
2cbffe21e2
commit
8e7c116e6a
3 changed files with 109 additions and 99 deletions
|
|
@ -9,6 +9,11 @@ class DataProcessor {
|
|||
public:
|
||||
DataProcessor() = default;
|
||||
|
||||
// Estructura de datos
|
||||
struct CarState {
|
||||
int ect = 0; // Temperatura (IMPORTANTE POR AHORA). Luego habría que añadir aquí todas las variables que se vallan a guardar.
|
||||
};
|
||||
|
||||
// Configuración SD
|
||||
void setLogSystem(SdFat* sd_inst, SdFile* file_inst) {
|
||||
_sd = sd_inst;
|
||||
|
|
@ -30,4 +35,4 @@ private:
|
|||
void flushToSD(); // Guardado físico
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue