mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
Add Auto-Exposure Switch to Calibration Window (#526)
This commit is contained in:
@@ -194,10 +194,13 @@
|
|||||||
>
|
>
|
||||||
<CVslider
|
<CVslider
|
||||||
v-model="$store.getters.currentPipelineSettings.cameraExposure"
|
v-model="$store.getters.currentPipelineSettings.cameraExposure"
|
||||||
|
:disabled="$store.getters.currentPipelineSettings.cameraAutoExposure"
|
||||||
name="Exposure"
|
name="Exposure"
|
||||||
:min="0"
|
:min="0"
|
||||||
:max="100"
|
:max="100"
|
||||||
slider-cols="8"
|
slider-cols="8"
|
||||||
|
step="0.1"
|
||||||
|
tooltip="Directly controls how much light is allowed to fall onto the sensor, which affects apparent brightness"
|
||||||
@input="e => handlePipelineUpdate('cameraExposure', e)"
|
@input="e => handlePipelineUpdate('cameraExposure', e)"
|
||||||
/>
|
/>
|
||||||
<CVslider
|
<CVslider
|
||||||
@@ -208,6 +211,13 @@
|
|||||||
slider-cols="8"
|
slider-cols="8"
|
||||||
@input="e => handlePipelineUpdate('cameraBrightness', e)"
|
@input="e => handlePipelineUpdate('cameraBrightness', e)"
|
||||||
/>
|
/>
|
||||||
|
<CVswitch
|
||||||
|
v-model="$store.getters.currentPipelineSettings.cameraAutoExposure"
|
||||||
|
class="pt-2"
|
||||||
|
name="Auto Exposure"
|
||||||
|
tooltip="Enables or Disables camera automatic adjustment for current lighting conditions"
|
||||||
|
@input="e => handlePipelineUpdate('cameraAutoExposure', e)"
|
||||||
|
/>
|
||||||
<CVslider
|
<CVslider
|
||||||
v-if="$store.getters.currentPipelineSettings.cameraRedGain !== -1"
|
v-if="$store.getters.currentPipelineSettings.cameraRedGain !== -1"
|
||||||
v-model="$store.getters.currentPipelineSettings.cameraRedGain"
|
v-model="$store.getters.currentPipelineSettings.cameraRedGain"
|
||||||
@@ -352,6 +362,7 @@
|
|||||||
import CVselect from '../components/common/cv-select';
|
import CVselect from '../components/common/cv-select';
|
||||||
import CVnumberinput from '../components/common/cv-number-input';
|
import CVnumberinput from '../components/common/cv-number-input';
|
||||||
import CVslider from '../components/common/cv-slider';
|
import CVslider from '../components/common/cv-slider';
|
||||||
|
import CVswitch from '../components/common/cv-switch';
|
||||||
import CVimage from "../components/common/cv-image";
|
import CVimage from "../components/common/cv-image";
|
||||||
import TooltippedLabel from "../components/common/cv-tooltipped-label";
|
import TooltippedLabel from "../components/common/cv-tooltipped-label";
|
||||||
import jsPDF from "jspdf";
|
import jsPDF from "jspdf";
|
||||||
@@ -364,6 +375,7 @@ export default {
|
|||||||
CVselect,
|
CVselect,
|
||||||
CVnumberinput,
|
CVnumberinput,
|
||||||
CVslider,
|
CVslider,
|
||||||
|
CVswitch,
|
||||||
CVimage
|
CVimage
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<CVslider
|
<CVslider
|
||||||
:disabled="cameraAutoExposure"
|
|
||||||
v-model="cameraExposure"
|
v-model="cameraExposure"
|
||||||
|
:disabled="cameraAutoExposure"
|
||||||
name="Exposure"
|
name="Exposure"
|
||||||
min="0"
|
min="0"
|
||||||
max="100"
|
max="100"
|
||||||
step="0.1"
|
step="0.1"
|
||||||
tooltip="Directly controls how much light is allowed to fall onto the sensor, which affects brightness"
|
tooltip="Directly controls how much light is allowed to fall onto the sensor, which affects apparent brightness"
|
||||||
:slider-cols="largeBox"
|
:slider-cols="largeBox"
|
||||||
@input="handlePipelineData('cameraExposure')"
|
@input="handlePipelineData('cameraExposure')"
|
||||||
@rollback="e => rollback('cameraExposure', e)"
|
@rollback="e => rollback('cameraExposure', e)"
|
||||||
@@ -25,7 +25,8 @@
|
|||||||
<CVswitch
|
<CVswitch
|
||||||
v-model="cameraAutoExposure"
|
v-model="cameraAutoExposure"
|
||||||
class="pt-2"
|
class="pt-2"
|
||||||
name="Auto exposure"
|
name="Auto Exposure"
|
||||||
|
tooltip="Enables or Disables camera automatic adjustment for current lighting conditions"
|
||||||
@input="handlePipelineData('cameraAutoExposure')"
|
@input="handlePipelineData('cameraAutoExposure')"
|
||||||
/>
|
/>
|
||||||
<CVslider
|
<CVslider
|
||||||
|
|||||||
Reference in New Issue
Block a user