From: Joseph Coffland Date: Mon, 8 May 2017 21:19:09 +0000 (-0700) Subject: Update precision X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=ebcf3b6cafd3e2e35236d9f0bbb3ffa21c7b6e9b;p=bbctrl-firmware Update precision --- diff --git a/src/jade/templates/control-view.jade b/src/jade/templates/control-view.jade index 4da12cc..4ed9f15 100644 --- a/src/jade/templates/control-view.jade +++ b/src/jade/templates/control-view.jade @@ -11,8 +11,8 @@ script#control-view-template(type="text/x-template") each axis in 'xyzabc' tr.axis(class="axis-#{axis}", v-if="enabled('#{axis}')") th.name #{axis} - td.position {{state.#{axis}p || 0 | fixed 4}} - td.offset {{state.#{axis}o || 0 | fixed 4}} + td.position {{state.#{axis}p || 0 | fixed 3}} + td.offset {{state.#{axis}o || 0 | fixed 3}} td.errors .fa.fa-hot(v-if="state.#{axis}t", title="Driver overtemp.") .fa.fa-ban(v-if="state.#{axis}s", title="Motor stalled.") @@ -35,11 +35,11 @@ script#control-view-template(type="text/x-template") td tr th Feed - td {{state.f || 0}} + td {{state.f || 0 | fixed 0}} td mm/min tr th Speed - td {{state.s || 0}} + td {{state.s || 0 | fixed 0}} td RPM tr th Direction