dashboard: show sensor node RS485 diagnostics

This commit is contained in:
2026-07-26 18:10:50 -06:00
parent 35c0721b47
commit f145730b14
10 changed files with 266 additions and 1 deletions
@@ -0,0 +1,36 @@
#pragma once
#include <Arduino.h>
struct SensorNodeDashboardStatus {
bool frameReceived = false;
bool imuOnline = false;
bool imuValid = false;
bool levelCalibrationValid = false;
bool gpsOnline = false;
bool gpsFix = false;
uint8_t imuAccuracy = 0;
uint32_t bootId = 0;
uint32_t frameSequence = 0;
uint32_t framesReceived = 0;
uint32_t framesDropped = 0;
uint32_t parseErrors = 0;
uint32_t oversizedFrames = 0;
uint32_t nodeRestarts = 0;
uint32_t satellites = 0;
float pitchDegrees = 0;
float rollDegrees = 0;
float speedKph = 0;
float hdop = 0;
double latitude = 0;
double longitude = 0;
String stability = "unknown";
String firmwareVersion;
unsigned long lastFrameMs = 0;
};
void initSensorNodeRs485();
void processSensorNodeRs485();
bool sensorNodeRs485Connected();
const SensorNodeDashboardStatus &getSensorNodeStatus();