add formatter for ROT

This commit is contained in:
wellenvogel 2021-11-18 15:59:19 +01:00
parent 32f9badda2
commit 292fc006ae
1 changed files with 9 additions and 0 deletions

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);