Increased display precision of position and motor config.
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 24 Aug 2018 00:42:19 +0000 (17:42 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 24 Aug 2018 00:46:30 +0000 (17:46 -0700)
CHANGELOG.md
package.json
src/jade/templates/control-view.jade
src/js/templated-input.js

index b7293e3facbce4d3ff6622ba5546cc17e4a3829f..f0c8e0832e957b69fae8ef4e60e4face0e61f1b0 100644 (file)
@@ -1,6 +1,9 @@
 Buildbotics CNC Controller Firmware Changelog
 ==============================================
 
+## v0.3.29
+ - Increased display precision of position and motor config.
+
 ## v0.3.28
  - Show step rate on motor configuration page.
  - Limit motor max-velocity such that step rate cannot exceed 250k.
index aa5b3cda1394d6bc0020908078584679a24626ed..5992cd8b674233bba534fc484e31630d0ed7ff63 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "bbctrl",
-  "version": "0.3.28",
+  "version": "0.3.29",
   "homepage": "http://buildbotics.com/",
   "repository": "https://github.com/buildbotics/bbctrl-firmware",
   "license": "GPL-3.0+",
index d4e096329d512df9504cbf58416d087c92cea35f..9eae06fc37341336dfca4d232f3bdef2f50ddf33 100644 (file)
@@ -47,7 +47,7 @@ script#control-view-template(type="text/x-template")
           th.name #{axis}
           td.position
             unit-value(:value="state.#{axis}p + get_offset('#{axis}')",
-              precision="3")
+              precision="4")
           td.absolute: unit-value(:value="state.#{axis}p", precision="3")
           td.offset: unit-value(:value="get_offset('#{axis}')", precision="3")
           th.actions
index 750980609188626dd695f4420ff1277e32754c04..a77593411351937749bde79a61e5b44fd3c93d91 100644 (file)
@@ -60,14 +60,14 @@ module.exports = {
   methods: {
     set_view: function () {
       if (this.template.scale && !this.metric)
-        this.view = (this.model / this.template.scale).toFixed(2);
+        this.view = (this.model / this.template.scale).toFixed(3);
       else this.view = this.model;
     },
 
 
     change: function () {
       if (this.template.scale && !this.metric)
-        this.model = 1 * (this.view * this.template.scale).toFixed(3);
+        this.model = 1 * (this.view * this.template.scale).toFixed(4);
       else this.model = this.view;
 
       this.$dispatch('input-changed');