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

Calibration for data types COG, SOG added

This commit is contained in:
Ulrich Meine
2025-05-25 17:42:50 +02:00
parent 02712263d3
commit d6e3c7ad48
3 changed files with 27 additions and 43 deletions

View File

@@ -10,7 +10,6 @@
#define MAX_CALIBRATION_DATA 3 // maximum number of calibration data instances
typedef struct {
// String instance; // data type/instance to be calibrated
double offset; // calibration offset
double slope; // calibration slope
double smooth; // smoothing factor
@@ -20,11 +19,9 @@ typedef struct {
class CalibrationDataList {
public:
// CalibData list[maxCalibrationData]; // list of calibration data instances
static std::unordered_map<std::string, TypeCalibData> calibMap; // list of calibration data instances
void readConfig(GwConfigHandler* config, GwLog* logger);
// int getInstanceListNo(std::string instance);
void calibrateInstance(GwApi::BoatValue* boatDataValue, GwLog* logger);
void smoothInstance(GwApi::BoatValue* boatDataValue, GwLog* logger);