|
|
@@ -10,7 +10,7 @@
|
|
|
<el-col :span="24"><h3>相机设置</h3></el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :span="6">电机偏移mm:</el-col>
|
|
|
+ <el-col :span="6">相机高度mm:</el-col>
|
|
|
<el-col :span="12"><el-input
|
|
|
@change="changeNum('相机电机','move_deviation','camera_high_motor_deviation',0, 50)"
|
|
|
:min="0" :max="50"
|
|
|
@@ -23,7 +23,7 @@
|
|
|
>设定</el-button></el-col>
|
|
|
</el-row>
|
|
|
<el-row class="mar-top-10">
|
|
|
- <el-col :span="6">舵机偏移(度):</el-col>
|
|
|
+ <el-col :span="6">相机角度(度):</el-col>
|
|
|
|
|
|
<el-col :span="12"><el-input
|
|
|
@change="changeNum('相机舵机','move_deviation','camera_steering_deviation',-90, 90)"
|
|
|
@@ -61,7 +61,7 @@
|
|
|
v-model="editRowData.turntable_front_end_deviation" type="number"/>
|
|
|
<div class="error-msg">最小0,最大950</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="6"><el-button @click="changeNum('转盘前后电机','set_deviation','turntable_front_end_deviation',0, 950)">设定</el-button></el-col>
|
|
|
+ <el-col :span="6"><!--<el-button @click="changeNum('转盘前后电机','set_deviation','turntable_front_end_deviation',0, 950)">设定</el-button>--></el-col>
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@@ -186,9 +186,9 @@ async function get_deviation(){
|
|
|
changeNum('转盘舵机','move_deviation','turntable_steering_deviation',-720, 720)
|
|
|
changeNum('转盘前后电机','move_deviation','turntable_front_end_deviation',0, 950)
|
|
|
changeNum('翻板舵机中位','move_deviation','overturn_steering_middle',0, 180)
|
|
|
- changeNum('翻板舵机高位','move_deviation','overturn_steering_high',0, 180)
|
|
|
- changeNum('翻板舵机上升速度','move_deviation','overturn_steering_up_speed',0, 10)
|
|
|
- changeNum('翻板舵机下降速度','move_deviation','overturn_steering_down_speed',0, 10)
|
|
|
+ // changeNum('翻板舵机高位','move_deviation','overturn_steering_high',0, 180)
|
|
|
+ // changeNum('翻板舵机上升速度','move_deviation','overturn_steering_up_speed',0, 10)
|
|
|
+ // changeNum('翻板舵机下降速度','move_deviation','overturn_steering_down_speed',0, 10)
|
|
|
}else if(result.msg){
|
|
|
ElMessage.error(result.msg)
|
|
|
}
|
|
|
@@ -252,10 +252,14 @@ async function changeNum(action_name, type, key, min, max) {
|
|
|
console.log('set_deviation')
|
|
|
console.log(result)
|
|
|
if(result.code === 0){
|
|
|
+ if(result.msg === "相机舵机 设置成功"){
|
|
|
+
|
|
|
+ editRowData.value.camera_steering_deviation = 0
|
|
|
+ }
|
|
|
if(allTipsCount.value === 1){
|
|
|
allTipsCount.value--;
|
|
|
ElMessage.success('设定成功')
|
|
|
- return;;
|
|
|
+ return;
|
|
|
}
|
|
|
if(allTipsCount.value > 0){
|
|
|
allTipsCount.value--;
|