mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Actualización para recoger bateria y revoluciones del CAN
This commit is contained in:
parent
e64a08326c
commit
73ddffe252
3 changed files with 16 additions and 3 deletions
|
|
@ -22,9 +22,11 @@ void TaskUdpSender(void *pvParameters){
|
|||
|
||||
//Obtenemos el dato actual
|
||||
int tempActual = dataProcessor.current_ect_value;
|
||||
int rpmActual = dataProcessor.current_rpm_value;
|
||||
float battActual = dataProcessor.current_vbatt_value;
|
||||
|
||||
//Pasamos el dato actual a mensaje para enviarlo
|
||||
String mensaje = String(tempActual);
|
||||
String mensaje = String(tempActual) + "|" + String(rpmActual) + "|" + String(battActual, 1);
|
||||
|
||||
//Enviamos el paquete a través de UDP
|
||||
udp.beginPacket(pc_ip, UDP_PORT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue