mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-11 15:13:06 +01:00
Data Calibration: Extend no. of calibration instances from 3 to 4
This commit is contained in:
@@ -22,7 +22,7 @@ private:
|
||||
std::unordered_map<std::string, double> lastValue; // array for last smoothed values of boat data values
|
||||
GwLog* logger;
|
||||
|
||||
static constexpr int8_t MAX_CALIBRATION_DATA = 3; // maximum number of calibration data instances
|
||||
static constexpr int8_t MAX_CALIBRATION_DATA = 4; // maximum number of calibration data instances
|
||||
|
||||
public:
|
||||
CalibrationData(GwLog* log);
|
||||
|
||||
@@ -919,6 +919,80 @@
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calInstance4",
|
||||
"label": "Calibration Data Instance 4",
|
||||
"type": "list",
|
||||
"default": "---",
|
||||
"description": "Data instance for calibration",
|
||||
"list": [
|
||||
"---",
|
||||
"AWA",
|
||||
"AWS",
|
||||
"COG",
|
||||
"DBS",
|
||||
"DBT",
|
||||
"HDM",
|
||||
"HDT",
|
||||
"PRPOS",
|
||||
"RPOS",
|
||||
"SOG",
|
||||
"STW",
|
||||
"TWA",
|
||||
"TWS",
|
||||
"TWD",
|
||||
"WTemp"
|
||||
],
|
||||
"category": "OBP60 Calibrations",
|
||||
"capabilities": {
|
||||
"obp60":"true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "calOffset4",
|
||||
"label": "Data Instance 4 Calibration Offset",
|
||||
"type": "number",
|
||||
"default": "0.00",
|
||||
"description": "Offset for data instance 4",
|
||||
"category": "OBP60 Calibrations",
|
||||
"capabilities": {
|
||||
"obp60":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calSlope4",
|
||||
"label": "Data Instance 4 Calibration Slope",
|
||||
"type": "number",
|
||||
"default": "1.00",
|
||||
"description": "Slope for data instance 3; Default: 1(!)",
|
||||
"category": "OBP60 Calibrations",
|
||||
"capabilities": {
|
||||
"obp60":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calSmooth4",
|
||||
"label": "Data Instance 4 Smoothing",
|
||||
"type": "number",
|
||||
"default": "0",
|
||||
"check": "checkMinMax",
|
||||
"min": 0,
|
||||
"max": 10,
|
||||
"description": "Smoothing factor [0..10]; 0 = no smoothing",
|
||||
"category": "OBP60 Calibrations",
|
||||
"capabilities": {
|
||||
"obp60":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mapsource",
|
||||
"label": "Map Source",
|
||||
|
||||
@@ -930,6 +930,80 @@
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calInstance4",
|
||||
"label": "Calibration Data Instance 4",
|
||||
"type": "list",
|
||||
"default": "---",
|
||||
"description": "Data instance for calibration",
|
||||
"list": [
|
||||
"---",
|
||||
"AWA",
|
||||
"AWS",
|
||||
"COG",
|
||||
"DBS",
|
||||
"DBT",
|
||||
"HDM",
|
||||
"HDT",
|
||||
"PRPOS",
|
||||
"RPOS",
|
||||
"SOG",
|
||||
"STW",
|
||||
"TWA",
|
||||
"TWS",
|
||||
"TWD",
|
||||
"WTemp"
|
||||
],
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "calOffset4",
|
||||
"label": "Data Instance 4 Calibration Offset",
|
||||
"type": "number",
|
||||
"default": "0.00",
|
||||
"description": "Offset for data instance 4",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calSlope4",
|
||||
"label": "Data Instance 4 Calibration Slope",
|
||||
"type": "number",
|
||||
"default": "1.00",
|
||||
"description": "Slope for data instance 4, Default: 1(!)",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "calSmooth4",
|
||||
"label": "Data Instance 4 Smoothing",
|
||||
"type": "number",
|
||||
"default": "0",
|
||||
"check": "checkMinMax",
|
||||
"min": 0,
|
||||
"max": 10,
|
||||
"description": "Smoothing factor [0..10]; 0 = no smoothing",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance4": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mapsource",
|
||||
"label": "Map Source",
|
||||
|
||||
Reference in New Issue
Block a user