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
33
Tiempo_por_vuelta/receptor_pruebas/acceleration.cpp
Normal file
33
Tiempo_por_vuelta/receptor_pruebas/acceleration.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include <Arduino.h>
|
||||
|
||||
#include "acceleration.hpp"
|
||||
|
||||
void reiniciar_receptor_acceleration() {
|
||||
// Acceleration no necesita variables persistentes en el receptor.
|
||||
}
|
||||
|
||||
void procesar_acceleration(const paquete_datos& datos) {
|
||||
switch (datos.estado) {
|
||||
case 1:
|
||||
Serial.println("Sensor final de Acceleration conectado. Sistema listo");
|
||||
break;
|
||||
|
||||
case 2:
|
||||
Serial.println("Acceleration iniciada");
|
||||
break;
|
||||
|
||||
case 3:
|
||||
Serial.print("Acceleration terminada: ");
|
||||
Serial.print(datos.tiempo / 1000.0, 3);
|
||||
Serial.println(" s");
|
||||
break;
|
||||
|
||||
case 4:
|
||||
Serial.println("ERROR: el sensor final de Acceleration no esta conectado");
|
||||
break;
|
||||
|
||||
default:
|
||||
Serial.println("Estado de Acceleration desconocido");
|
||||
break;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue