1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

add formatter for ROT

This commit is contained in:
wellenvogel
2021-11-18 15:59:19 +01:00
parent 32f9badda2
commit 292fc006ae

View File

@@ -540,6 +540,15 @@ let valueFormatters = {
},
u: ''
},
formatRot:{
f: function(v){
let x=parseFloat(v);
if (isNaN(x)) return '---';
x = x * 180.0 / Math.PI;
return x.toFixed(2);
},
u:'°/s'
}
}
function createDashboardItem(name, def, parent) {
let frame = addEl('div', 'dash', parent);