mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-11 07:03:07 +01:00
Update data calibration: calibration in main loop on boat data values:
- modified code to calibrate affected boat data each second in main obp60task loop; - removed individual calibration call in all pages - moved code from BoatDataCalibration to OBPDataOperations - added DBS and HDT to list of supported data calibration types - changed output format for wind angles from [-180..180] to [0..360], because negative value are not displayed properly on pages
This commit is contained in:
@@ -719,8 +719,10 @@
|
||||
"AWA",
|
||||
"AWS",
|
||||
"COG",
|
||||
"DBS",
|
||||
"DBT",
|
||||
"HDM",
|
||||
"HDT",
|
||||
"PRPOS",
|
||||
"RPOS",
|
||||
"SOG",
|
||||
@@ -746,7 +748,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -754,13 +756,13 @@
|
||||
"label": "Data Instance 1 Calibration Slope",
|
||||
"type": "number",
|
||||
"default": "1.00",
|
||||
"description": "Slope for data instance 1",
|
||||
"description": "Slope for data instance 1, Default: 1(!)",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -777,7 +779,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance1": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -791,8 +793,10 @@
|
||||
"AWA",
|
||||
"AWS",
|
||||
"COG",
|
||||
"DBS",
|
||||
"DBT",
|
||||
"HDM",
|
||||
"HDT",
|
||||
"PRPOS",
|
||||
"RPOS",
|
||||
"SOG",
|
||||
@@ -818,7 +822,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -826,13 +830,13 @@
|
||||
"label": "Data Instance 2 Calibration Slope",
|
||||
"type": "number",
|
||||
"default": "1.00",
|
||||
"description": "Slope for data instance 2",
|
||||
"description": "Slope for data instance 2; Default: 1(!)",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -849,7 +853,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance2": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -863,8 +867,10 @@
|
||||
"AWA",
|
||||
"AWS",
|
||||
"COG",
|
||||
"DBS",
|
||||
"DBT",
|
||||
"HDM",
|
||||
"HDT",
|
||||
"PRPOS",
|
||||
"RPOS",
|
||||
"SOG",
|
||||
@@ -890,7 +896,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -898,13 +904,13 @@
|
||||
"label": "Data Instance 3 Calibration Slope",
|
||||
"type": "number",
|
||||
"default": "1.00",
|
||||
"description": "Slope for data instance 3",
|
||||
"description": "Slope for data instance 3, Default: 1(!)",
|
||||
"category": "OBP40 Calibrations",
|
||||
"capabilities": {
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -921,7 +927,7 @@
|
||||
"obp40":"true"
|
||||
},
|
||||
"condition": [
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBT", "HDM", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
{ "calInstance3": ["AWA", "AWS", "COG", "DBS", "DBT", "HDM", "HDT", "PRPOS", "RPOS", "SOG", "STW", "TWA", "TWS", "TWD", "WTemp" ] }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user