mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-28 02:11:40 +00:00
bug fix in video mode name
This commit is contained in:
@@ -13,6 +13,6 @@ public class CVPipelineSettings {
|
||||
public double exposure = 50.0;
|
||||
public double brightness = 50.0;
|
||||
public double gain = 0;
|
||||
public int VideoModeIndex = 0;
|
||||
public int videoModeIndex = 0;
|
||||
public StreamDivisor streamDivisor = StreamDivisor.NONE;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public class SocketHandler {
|
||||
currentCamera.setBrightness((Integer) entry.getValue());
|
||||
break;
|
||||
}
|
||||
case "videoMode":{
|
||||
case "videoModeIndex":{
|
||||
currentCamera.setVideoMode((Integer) entry.getValue());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export default new Vuex.Store({
|
||||
multiple:false,
|
||||
isBinary: 0,
|
||||
calibrationMode: 0,
|
||||
VideoModeIndex:0,
|
||||
videoModeIndex:0,
|
||||
streamDivisor:0
|
||||
},
|
||||
cameraSettings: {},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<CVslider name="Brightness" v-model="value.brightness" :min="0" :max="100" @input="handleData('brightness')"/>
|
||||
<CVselect name="Orientation" v-model="value.rotationMode" :list="['Normal','90° CW','180°','90° CCW']"
|
||||
@input="handleData('rotationMode')"/>
|
||||
<CVselect name="Resolution" v-model="value.VideoModeIndex" :list="resolutionList" @input="handleData('VideoModeIndex')"/>
|
||||
<CVselect name="Resolution" v-model="value.videoModeIndex" :list="resolutionList" @input="handleData('videoModeIndex')"/>
|
||||
<CVselect name="Stream Resolution" v-model="value.streamDivisor"
|
||||
:list="streamResolutionList" @input="handleData('streamDivisor')"/>
|
||||
</div>
|
||||
@@ -45,7 +45,7 @@
|
||||
},
|
||||
streamResolutionList: {
|
||||
get() {
|
||||
let cam_res = this.$store.state.resolutionList[this.value.VideoModeIndex];
|
||||
let cam_res = this.$store.state.resolutionList[this.value.videoModeIndex];
|
||||
let tmp_list = [];
|
||||
let x = 1;
|
||||
for (let i = 0; i < 4; i++) {
|
||||
|
||||
Reference in New Issue
Block a user