diff --git a/core/frontend/src/components/parameter-editor/ParameterCheckbox.vue b/core/frontend/src/components/parameter-editor/ParameterCheckbox.vue new file mode 100644 index 0000000000..83eb1b6c5f --- /dev/null +++ b/core/frontend/src/components/parameter-editor/ParameterCheckbox.vue @@ -0,0 +1,112 @@ + + + diff --git a/core/frontend/src/components/parameter-editor/ServoFunctionEditorDialog.vue b/core/frontend/src/components/parameter-editor/ServoFunctionEditorDialog.vue index 791f8c6434..ba58d2a74f 100644 --- a/core/frontend/src/components/parameter-editor/ServoFunctionEditorDialog.vue +++ b/core/frontend/src/components/parameter-editor/ServoFunctionEditorDialog.vue @@ -15,14 +15,26 @@ mdi-close - - - + + + + + + + + + +
@@ -150,6 +162,7 @@ import autopilot from '@/store/autopilot' import Parameter from '@/types/autopilot/parameter' import InlineParameterEditor from './InlineParameterEditor.vue' +import ParameterCheckbox from './ParameterCheckbox.vue' type ParamType = 'min' | 'trim' | 'max' type ParamValueKey = 'minValue' | 'trimValue' | 'maxValue' @@ -167,6 +180,7 @@ export default Vue.extend({ name: 'ServoFunctionEditorDialog', components: { InlineParameterEditor, + ParameterCheckbox, }, model: { prop: 'value', @@ -202,6 +216,9 @@ export default Vue.extend({ min_param(): Parameter | undefined { return this.getParamByType('_MIN') }, + reverse_param(): Parameter | undefined { + return this.getParamByType('_REVERSED') + }, minPercent(): number { return this.calculatePercentage(this.minValue) },