updated pom for release, 3d calibration change, cosmetic changes

This commit is contained in:
Unknown
2020-01-01 15:46:05 +02:00
parent 9559bb360e
commit 5f8f7ca555
5 changed files with 32 additions and 20 deletions

View File

@@ -8,13 +8,13 @@
<v-range-slider :value="localValue" @input="handleInput" :max="max" :min="min" hide-details
class="align-center" dark color="#4baf62" :step="step">
<template v-slot:prepend>
<v-text-field :value="localValue[0]" :max="max" :min="min" @input="handleChange"
<v-text-field dark :value="localValue[0]" :max="max" :min="min" @input="handleChange"
@focus="prependFocused = true" @blur="prependFocused = false" class="mt-0 pt-0"
hide-details single-line type="number" style="width: 50px" :step="step"/>
</template>
<template v-slot:append>
<v-text-field :value="localValue[1]" :max="max" :min="min" @input="handleChange"
<v-text-field dark :value="localValue[1]" :max="max" :min="min" @input="handleChange"
@focus="appendFocused = true" @blur="appendFocused = false" class="mt-0 pt-0"
hide-details single-line type="number" style="width: 50px" :step="step"/>
</template>

View File

@@ -5,7 +5,7 @@
<span>{{name}}</span>
</v-col>
<v-col>
<v-switch v-model="localValue" color="#4baf62"/>
<v-switch dark :disabled="disabled" v-model="localValue" color="#4baf62"/>
</v-col>
</v-row>
</div>
@@ -14,7 +14,7 @@
<script>
export default {
name: 'CVSwitch',
props: ['name', 'value'],
props: ['name', 'value', 'disabled'],
data() {
return {}
},

View File

@@ -33,14 +33,20 @@ export default new Vuex.Store({
targetGrouping: 0,
targetIntersection: 0,
sortMode: 0,
multiple:false,
multiple: false,
isBinary: 0,
calibrationMode: 0,
videoModeIndex:0,
streamDivisor:0,
is3D:false
videoModeIndex: 0,
streamDivisor: 0,
is3D: false
},
cameraSettings: {
calibration: [],
fov: 0,
resolution: 0,
streamDivisor: 0,
tilt: 0
},
cameraSettings: {},
resolutionList: [],
port: 1181,
currentCameraIndex: 0,

View File

@@ -2,7 +2,7 @@
<div>
<v-row align="center" justify="start" dense>
<v-col :cols="6">
<CVswitch v-model="value.is3D" name="Enable 3D" @input="handleData('is3D')"/>
<CVswitch :disabled="allow3D" v-model="value.is3D" name="Enable 3D" @input="handleData('is3D')"/>
</v-col>
<v-col>
<CVnumberInput name="Max Height:" v-model="value.targetHeight" @input="handleData('targetHeight')"/>
@@ -62,7 +62,6 @@
get() {
return this.$store.state.point.targets;
}
},
horizontalFOV: {
get() {
@@ -73,6 +72,18 @@
let diagonalAspect = Math.hypot(resolution.width, resolution.height);
return Math.atan(Math.tan(diagonalView / 2) * (resolution.width / diagonalAspect)) * 2 * (180 / Math.PI)
}
},
allow3D:{
get(){
let currentRes = this.$store.state.resolutionList[this.$store.state.pipeline.videoModeIndex];
console.log('change');
for (let res of this.$store.state.cameraSettings.calibration){
if (currentRes.width === res.width && currentRes.height === res.height){
return false;
}
}
return true;
}
}
}
}

View File

@@ -31,7 +31,8 @@
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.chameleonvision.Main</mainClass>
</transformer>
</transformers>
@@ -43,20 +44,14 @@
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<wpilib.version>2020.1.1-beta-3-15-g7b9c6eb</wpilib.version>
<wpilib.version>2020.1.1</wpilib.version>
<opencv.version>3.4.7-2</opencv.version>
</properties>
<repositories>
<!--WPI official maven repo for frc libs-->
<!-- <repository>-->
<!-- <id>WPI</id>-->
<!-- <name>WPI Maven repo</name>-->
<!-- <url>https://first.wpi.edu/FRC/roborio/maven/release</url>-->
<!-- </repository>-->
<repository>
<id>WPI</id>
<name>WPILib Artifactory Server-releases</name>
<url>https://frcmaven.wpi.edu:443/artifactory/development</url>
<url>https://frcmaven.wpi.edu:443/artifactory/release</url>
</repository>
</repositories>
<dependencies>