1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 15:03:07 +01:00

Basis working

This commit is contained in:
Ulrich Meine
2025-05-17 10:58:31 +02:00
parent 6dbbd13ead
commit 10951d7f13
3 changed files with 91 additions and 16 deletions

View File

@@ -10,6 +10,7 @@ typedef struct {
String instance; // data type/instance to be calibrated
double offset; // calibration offset
double slope; // calibration slope
double smooth; // smoothing factor
double value; // calibrated data value
bool isCalibrated; // is data instance value calibrated?
} CalibData;
@@ -23,6 +24,7 @@ public:
static void readConfig(GwConfigHandler* config, GwLog* logger);
static int getInstanceListNo(String instance);
static void calibrateInstance(String instance, GwApi::BoatValue* boatDataValue, GwLog* logger);
void smoothInstance(String instance, double &dataValue, GwLog* logger);
private:
};