From aa819895d31deeda494ab5f22e4213752e509d7a Mon Sep 17 00:00:00 2001 From: PAJohnson Date: Fri, 25 Sep 2020 20:28:07 -0400 Subject: [PATCH] Basic support for units --- GUI/src/assets/dashboards/Config_0_5_1.json | 2 +- .../components/wizard/choices/wizardBrake.vue | 15 +++++- .../components/wizard/choices/wizardMisc.vue | 15 +++++- .../components/wizard/choices/wizardMotor.vue | 12 +++-- GUI/src/odrive_utils.js | 50 +++++++++++++++++++ GUI/src/views/Dashboard.vue | 1 + GUI/src/views/Start.vue | 7 +-- 7 files changed, 90 insertions(+), 12 deletions(-) diff --git a/GUI/src/assets/dashboards/Config_0_5_1.json b/GUI/src/assets/dashboards/Config_0_5_1.json index 595b8db0..a26dff16 100644 --- a/GUI/src/assets/dashboards/Config_0_5_1.json +++ b/GUI/src/assets/dashboards/Config_0_5_1.json @@ -63,7 +63,7 @@ { "id": "d7abba09-b0aa-438a-8220-6126e467004e", "path": "odrives.odrive0.axis0.controller.input_pos", - "val": 50000 + "val": 10 } ], "plots": [ diff --git a/GUI/src/components/wizard/choices/wizardBrake.vue b/GUI/src/components/wizard/choices/wizardBrake.vue index 6921f766..998e4e93 100644 --- a/GUI/src/components/wizard/choices/wizardBrake.vue +++ b/GUI/src/components/wizard/choices/wizardBrake.vue @@ -3,12 +3,14 @@
Brake resistor value = - Ohms + [{{unit}}]