@@ -7,7 +7,6 @@ import InputTab from "@/components/dashboard/tabs/InputTab.vue";
7
7
import ThresholdTab from " @/components/dashboard/tabs/ThresholdTab.vue" ;
8
8
import ContoursTab from " @/components/dashboard/tabs/ContoursTab.vue" ;
9
9
import AprilTagTab from " @/components/dashboard/tabs/AprilTagTab.vue" ;
10
- import ArucoTab from " @/components/dashboard/tabs/ArucoTab.vue" ;
11
10
import ObjectDetectionTab from " @/components/dashboard/tabs/ObjectDetectionTab.vue" ;
12
11
import OutputTab from " @/components/dashboard/tabs/OutputTab.vue" ;
13
12
import TargetsTab from " @/components/dashboard/tabs/TargetsTab.vue" ;
@@ -29,7 +28,6 @@ const allTabs = Object.freeze({
29
28
thresholdTab: { tabName: " Threshold" , component: ThresholdTab },
30
29
contoursTab: { tabName: " Contours" , component: ContoursTab },
31
30
apriltagTab: { tabName: " AprilTag" , component: AprilTagTab },
32
- arucoTab: { tabName: " Aruco" , component: ArucoTab },
33
31
objectDetectionTab: { tabName: " Object Detection" , component: ObjectDetectionTab },
34
32
outputTab: { tabName: " Output" , component: OutputTab },
35
33
targetsTab: { tabName: " Targets" , component: TargetsTab },
@@ -50,7 +48,6 @@ const getTabGroups = (): ConfigOption[][] => {
50
48
allTabs .thresholdTab ,
51
49
allTabs .contoursTab ,
52
50
allTabs .apriltagTab ,
53
- allTabs .arucoTab ,
54
51
allTabs .objectDetectionTab ,
55
52
allTabs .outputTab
56
53
],
@@ -59,21 +56,14 @@ const getTabGroups = (): ConfigOption[][] => {
59
56
} else if (lgAndDown .value ) {
60
57
return [
61
58
[allTabs .inputTab ],
62
- [
63
- allTabs .thresholdTab ,
64
- allTabs .contoursTab ,
65
- allTabs .apriltagTab ,
66
- allTabs .arucoTab ,
67
- allTabs .objectDetectionTab ,
68
- allTabs .outputTab
69
- ],
59
+ [allTabs .thresholdTab , allTabs .contoursTab , allTabs .apriltagTab , allTabs .objectDetectionTab , allTabs .outputTab ],
70
60
[allTabs .targetsTab , allTabs .pnpTab , allTabs .map3dTab ]
71
61
];
72
62
} else if (xl .value ) {
73
63
return [
74
64
[allTabs .inputTab ],
75
65
[allTabs .thresholdTab ],
76
- [allTabs .contoursTab , allTabs .apriltagTab , allTabs .arucoTab , allTabs . objectDetectionTab , allTabs .outputTab ],
66
+ [allTabs .contoursTab , allTabs .apriltagTab , allTabs .objectDetectionTab , allTabs .outputTab ],
77
67
[allTabs .targetsTab , allTabs .pnpTab , allTabs .map3dTab ]
78
68
];
79
69
}
@@ -99,8 +89,7 @@ const tabGroups = computed<ConfigOption[][]>(() => {
99
89
! ((isAprilTag || isAruco || isObjectDetection ) && tabConfig .tabName === " Threshold" ) && // Filter out threshold tab if we're doing AprilTags
100
90
! ((isAprilTag || isAruco || isObjectDetection ) && tabConfig .tabName === " Contours" ) && // Filter out contours if we're doing AprilTags
101
91
! (! isAprilTag && tabConfig .tabName === " AprilTag" ) && // Filter out apriltag unless we actually are doing AprilTags
102
- ! (! isAruco && tabConfig .tabName === " Aruco" ) &&
103
- ! (! isObjectDetection && tabConfig .tabName === " Object Detection" ) // Filter out aruco unless we actually are doing Aruco
92
+ ! (! isObjectDetection && tabConfig .tabName === " Object Detection" )
104
93
)
105
94
)
106
95
.filter ((it ) => it .length ); // Remove empty tab groups
@@ -110,6 +99,11 @@ const onBeforeTabUpdate = () => {
110
99
// Force the current tab to the input tab on driver mode change
111
100
if (useCameraSettingsStore ().isDriverMode ) {
112
101
selectedTabs .value [0 ] = 0 ;
102
+ } else if (
103
+ useCameraSettingsStore ().currentWebsocketPipelineType === WebsocketPipelineType .Aruco &&
104
+ selectedTabs .value [0 ] == 2
105
+ ) {
106
+ selectedTabs .value [0 ]-- ;
113
107
}
114
108
};
115
109
</script >
0 commit comments