From c140afc7aa6bff6d73970c413f5726ec26f0c8f6 Mon Sep 17 00:00:00 2001 From: PAJohnson Date: Wed, 23 Sep 2020 19:00:10 -0400 Subject: [PATCH] Refactoring getVal, putVal into odrive_utils.js --- GUI/src/components/actions/Action.vue | 19 +--- GUI/src/components/clearErrors.vue | 21 +---- GUI/src/components/controls/CtrlBoolean.vue | 33 ++----- GUI/src/components/controls/CtrlFunction.vue | 38 +------- GUI/src/components/controls/CtrlNumeric.vue | 37 ++------ GUI/src/components/controls/CtrlSlider.vue | 37 +------- .../components/wizard/choices/wizardEnd.vue | 25 +----- .../wizard/choices/wizardInputFiltered.vue | 15 +--- .../wizard/choices/wizardInputTrajectory.vue | 41 ++------- .../wizard/choices/wizardInputVelRamp.vue | 15 +--- .../components/wizard/choices/wizardMisc.vue | 24 ++---- .../components/wizard/choices/wizardMotor.vue | 86 ++----------------- .../page_components/wizardMotorMeasure.vue | 21 +---- GUI/src/odrive_utils.js | 67 +++++++++++++++ GUI/src/views/Wizard.vue | 78 +++-------------- 15 files changed, 133 insertions(+), 424 deletions(-) create mode 100644 GUI/src/odrive_utils.js diff --git a/GUI/src/components/actions/Action.vue b/GUI/src/components/actions/Action.vue index d8595c12..a02bab8b 100644 --- a/GUI/src/components/actions/Action.vue +++ b/GUI/src/components/actions/Action.vue @@ -10,7 +10,7 @@ diff --git a/GUI/src/components/wizard/choices/wizardInputFiltered.vue b/GUI/src/components/wizard/choices/wizardInputFiltered.vue index 607cdfe3..8d013a69 100644 --- a/GUI/src/components/wizard/choices/wizardInputFiltered.vue +++ b/GUI/src/components/wizard/choices/wizardInputFiltered.vue @@ -11,6 +11,7 @@