add formatter for ROT
This commit is contained in:
parent
32f9badda2
commit
292fc006ae
|
@ -540,6 +540,15 @@ let valueFormatters = {
|
||||||
},
|
},
|
||||||
u: ''
|
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) {
|
function createDashboardItem(name, def, parent) {
|
||||||
let frame = addEl('div', 'dash', parent);
|
let frame = addEl('div', 'dash', parent);
|
||||||
|
|
Loading…
Reference in New Issue