mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Todo subido
This commit is contained in:
parent
f0db3a8aeb
commit
27026caf57
87 changed files with 83292 additions and 17 deletions
36
Tiempo_por_vuelta/receptor_pruebas/configuracion.hpp
Normal file
36
Tiempo_por_vuelta/receptor_pruebas/configuracion.hpp
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue