1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-01-26 08:13:05 +01:00

OBP60Formatter: add option to switch of creation of simulation data and use pure conversion/formatting function

This commit is contained in:
Ulrich Meine
2026-01-10 01:50:19 +01:00
parent 1557126823
commit 84736e6769
2 changed files with 21 additions and 6 deletions

View File

@@ -204,9 +204,8 @@ typedef struct{
// Formatter for boat values
FormattedData formatValue(GwApi::BoatValue *value, CommonData &commondata);
FormattedData formatValue(GwApi::BoatValue *value, CommonData &commondata, bool ignoreSimuDataSetting);
// Helper method for conversion of any data value from SI to user defined format (defined in OBP60Formatter)
double convertValue(const double &value, const String &format, CommonData &commondata);
double convertValue(const double &value, const String &name, const String &format, CommonData &commondata);
// Helper method for conversion of boat data values from user defined format to SI (defined in OBP60Formatter)
double convertToSItemp(const double &value, const String &name, const String &format, CommonData &commondata);