mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-12 13:33:06 +01:00
add XDR min interval, N2K min interval, add N2K_LOAD_LEVEL and N2K_CERTIFICATION_LEVEL
This commit is contained in:
@@ -123,6 +123,24 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "minXdrInterval",
|
||||
"label":"min XDR interval",
|
||||
"type": "number",
|
||||
"default": "100",
|
||||
"check": "checkMinXdrInterval",
|
||||
"description": "min interval in ms between 2 XDR records with the same transducer (> 10)",
|
||||
"category": "converter"
|
||||
},
|
||||
{
|
||||
"name": "min2KInterval",
|
||||
"label":"min N2K interval",
|
||||
"type": "number",
|
||||
"default": "50",
|
||||
"check": "checkMin2KInterval",
|
||||
"description": "min interval in ms between 2 NMEA 2000 records with the same PGN (> 5)",
|
||||
"category": "converter"
|
||||
},
|
||||
{
|
||||
"name": "usbActisense",
|
||||
"label": "USB mode",
|
||||
|
||||
10
web/index.js
10
web/index.js
@@ -124,6 +124,16 @@ function checkApPass(v) {
|
||||
return "password must be at least 8 characters";
|
||||
}
|
||||
}
|
||||
function checkMinXdrInterval(v){
|
||||
let vv=parseInt(v);
|
||||
if (isNaN(vv)) return "is not a number";
|
||||
if (vv < 10) return "must be >= 10";
|
||||
}
|
||||
function checkMin2KInterval(v){
|
||||
let vv=parseInt(v);
|
||||
if (isNaN(vv)) return "is not a number";
|
||||
if (vv < 5) return "must be >= 5";
|
||||
}
|
||||
function checkXDR(v,allValues){
|
||||
if (! v) return;
|
||||
let parts=v.split(',');
|
||||
|
||||
Reference in New Issue
Block a user