Todo subido

This commit is contained in:
Álvaro Alcántara Ramírez 2026-08-03 21:52:05 +02:00
parent f0db3a8aeb
commit 27026caf57
87 changed files with 83292 additions and 17 deletions

View file

@ -0,0 +1,36 @@
#pragma once
#include <Arduino.h>
/* MAC del emisor de pruebas */
static const uint8_t ESPNOW_MAC_EMISOR_PRUEBAS[6] = {
0x28, 0x05, 0xA5, 0xE1, 0xCF, 0x90
};
enum tipo_prueba : uint8_t {
PRUEBA_NINGUNA = 0,
PRUEBA_ACCELERATION = 1,
PRUEBA_SKIDPAD = 2,
PRUEBA_AUTOX_ENDURANCE = 3
};
enum tipo_comando : uint8_t {
COMANDO_NINGUNO = 0,
COMANDO_SELECCIONAR_PRUEBA = 1,
COMANDO_REINICIAR_PRUEBA = 2
};
struct paquete_control {
uint8_t comando;
uint8_t prueba;
};
struct paquete_datos {
uint8_t prueba;
uint8_t estado;
uint16_t vuelta;
unsigned long tiempo;
unsigned long laptime_derecha;
unsigned long laptime_izquierda;
unsigned long average;
};