Skip to content

Commit

Permalink
Add switch for multitag
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Aug 22, 2023
1 parent ce709dd commit aee455c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions photon-client/src/components/dashboard/tabs/OutputTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const offsetPoints = computed<MetricItem[]>(() => {
}
});
const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings;
const interactiveCols = computed(() => (getCurrentInstance()?.proxy.$vuetify.breakpoint.mdAndDown || false) && (!useStateStore().sidebarFolded || useCameraSettingsStore().isDriverMode)) ? 9 : 8;
</script>

Expand Down Expand Up @@ -65,6 +67,13 @@ const interactiveCols = computed(() => (getCurrentInstance()?.proxy.$vuetify.bre
:switch-cols="interactiveCols"
@input="value => useCameraSettingsStore().changeCurrentPipelineSetting({outputShowMultipleTargets: value}, false)"
/>
<cv-switch
v-if="currentPipelineSettings.pipelineType === PipelineType.AprilTag && useCameraSettingsStore().isCurrentVideoFormatCalibrated"
v-model="currentPipelineSettings.doMultiTarget"
label="Multitag"
:switch-cols="interactiveCols"
@input="value => useCameraSettingsStore().changeCurrentPipelineSetting({doMultiTarget: value}, false)"
/>
<v-divider />
<table
v-if="useCameraSettingsStore().currentPipelineSettings.offsetRobotOffsetMode !== RobotOffsetPointMode.None"
Expand Down

0 comments on commit aee455c

Please sign in to comment.