Skip to content

Commit 028ce71

Browse files
ES-Alexanderpatrickelectric
authored andcommitted
frontend: camera: allow setting gimbal servo to any channel
1 parent 1b21bf0 commit 028ce71

File tree

1 file changed

+1
-8
lines changed
  • core/frontend/src/components/vehiclesetup/configuration

1 file changed

+1
-8
lines changed

core/frontend/src/components/vehiclesetup/configuration/camera.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<v-select
2222
v-if="is_servo_type"
2323
v-model="mnt1_pitch_new_param"
24-
:items="recommended_params"
24+
:items="servo_params"
2525
:item-text="friendlyName"
2626
:item-value="'name'"
2727
label="Mount 1 Pitch Servo"
@@ -121,13 +121,6 @@ export default {
121121
}
122122
},
123123
computed: {
124-
recommended_params(): Parameter[] {
125-
// return parameters in servo_params that are on channel 9 and higher
126-
return this.servo_params.filter((param) => {
127-
const servoNumber = parseInt(param.name.replace('SERVO', '').split('_')[0], 10)
128-
return servoNumber >= 9
129-
})
130-
},
131124
type_param(): Parameter | undefined {
132125
return autopilot_data.parameters.find((p) => p.name === 'MNT1_TYPE')
133126
},

0 commit comments

Comments
 (0)