Fix driver mode settings, sort resolutions (#115)

* Fix DriverMode settings

* Update FileVisionSource.java

* Sort modes by resolution

* Filter duplicated modes

* run spotless

* Fix calibration bug

* run format

* aaaaa

* Add hardware and platform support

* decrease timing sensitivity

* Better handle jvm exitg

* Make reboot happen immediately

* Cleanup restart

* Remove debug print

* Fix Jackson exploding when deserializing old versions of configs

* Add unit test for old config versions

* Run format

* Add a comment

* remove isvendorcam from pipeline manager

* oops
This commit is contained in:
Matt
2020-09-10 19:20:16 -07:00
committed by GitHub
parent ddd15d362b
commit a35f775b05
25 changed files with 193 additions and 57 deletions

View File

@@ -2,8 +2,10 @@
<div>
<span>Version: {{ settings.version }}</span>
&mdash;
<span>Hardware model: {{ settings.hardwareModel }}</span>
&mdash;
<div v-if="settings.hardwareModel !== ''">
<span>Hardware model: {{ settings.hardwareModel }}</span>
&mdash;
</div>
<span>Platform: {{ settings.hardwarePlatform }}</span>
&mdash;
<span>GPU Acceleration: {{ settings.gpuAcceleration ? "Enabled" : "Unsupported" }}{{ settings.gpuAcceleration ? " (" + settings.gpuAcceleration + " mode)" : "" }}</span>
@@ -42,7 +44,7 @@
>
<v-btn
color="red"
@click="axios.post('http://' + this.$address + '/api/restartProgram')"
@click="restartProgram()"
>
<v-icon left>
mdi-restart
@@ -55,7 +57,7 @@
>
<v-btn
color="red"
@click="axios.post('http://' + this.$address + '/api/restartDevice')"
@click="restartDevice()"
>
<v-icon left>
mdi-restart
@@ -109,6 +111,12 @@ export default {
}
},
methods: {
restartProgram() {
this.axios.post('http://' + this.$address + '/api/restartProgram', {});
},
restartDevice() {
this.axios.post('http://' + this.$address + '/api/restartDevice', {});
},
readImportedSettings(event) {
let formData = new FormData();
formData.append("zipData", event.target.files[0]);

View File

@@ -12,7 +12,7 @@
/>
<template v-if="!isDHCP">
<CVinput
v-model="settings.ip"
v-model="settings.staticIp"
:input-cols="inputCols"
:rules="[v => isIPv4(v) || 'Invalid IPv4 address']"
name="IP"