@@ -62,10 +61,6 @@ export default {
},
props: {
- primary: {
- type: Boolean,
- required: true
- },
isSA: {
type: Boolean,
required: true
@@ -82,10 +77,7 @@ export default {
cameraIdx: 0,
cameraName: '',
capacity: 4,
- qualities: reactive(new Array(9).fill(-1)),
streamOrder: reactive([]),
-
- num_available: -1
}
},
@@ -123,19 +115,9 @@ export default {
setCamIndex: function (index: number) {
// every time a button is pressed, it changes cam status and adds/removes from stream
this.camsEnabled[index] = !this.camsEnabled[index]
- if (this.camsEnabled[index]) this.qualities[index] = 2 //if enabling camera, turn on medium quality
this.changeStream(index)
},
- sendCameras: function (index: number) {
- this.sendMessage({
- type: 'sendCameras',
- primary: this.primary,
- device: index,
- resolution: this.qualities[index]
- })
- },
-
addCameraName: function () {
this.names[this.cameraIdx] = this.cameraName
},
@@ -145,9 +127,7 @@ export default {
if (found) {
this.streamOrder.splice(this.streamOrder.indexOf(index), 1)
this.streamOrder.push(-1)
- this.qualities[index] = -1 //close the stream when sending it to comms
} else this.streamOrder[this.streamOrder.indexOf(-1)] = index
- this.sendCameras(index)
},
takePanorama() {
diff --git a/src/teleoperation/frontend/src/components/DMESTask.vue b/src/teleoperation/frontend/src/components/DMESTask.vue
index f33cd09aa..9db855615 100644
--- a/src/teleoperation/frontend/src/components/DMESTask.vue
+++ b/src/teleoperation/frontend/src/components/DMESTask.vue
@@ -22,7 +22,7 @@