Compare commits

..

No commits in common. "28a3e543f983e0b625569837d5274afa30b9e08c" and "c67cf2e38bca8e818fdb01fd4d730c47af532662" have entirely different histories.

3 changed files with 13 additions and 27 deletions

View File

@ -340,14 +340,6 @@
createMessage.error('DRC连接失败状态码' + rs.data.result);
}
}
//
if (rs.method == 'fly_to_point') {
if (rs.data.result == 0) {
createMessage.success('指点飞行成功');
} else {
createMessage.error('指点飞行失败,状态码' + rs.data.result);
}
}
});
});
onUnmounted(() => {

View File

@ -10,20 +10,20 @@
<div class="content-edit">
目标点纬度
<div style="display: flex; flex-direction: column; align-items: center">
<a-input v-model:value="data.points[0].latitude" readonly />
<a-input v-model:value="data.points.latitude" readonly />
<span style="margin-top: 4px; font-size: 12px; color: #f2762d">地图右键选择目标点</span>
</div>
</div>
<div class="content-edit">
目标点经度
<div>
<a-input v-model:value="data.points[0].longitude" readonly />
<a-input v-model:value="data.points.longitude" readonly />
</div>
</div>
<div class="content-edit">
目标点高度
<div>
<a-input v-model:value="data.points[0].height" />
<a-input v-model:value="data.points.height" />
</div>
</div>
<div class="content-button">
@ -57,15 +57,13 @@
});
const data = reactive({
fly_to_id: buildGUID(),
flight_id: buildGUID(),
max_speed: 10,
points: [
{
latitude: 35.134615,
longitude: 118.296676,
height: 115,
},
],
points: {
latitude: 35.134615,
longitude: 118.296676,
height: 115,
},
});
const takeOff = () => {
const querys = {
@ -89,8 +87,8 @@
onMounted(() => {
//
EventBus.on('obtainTheLocation', (val: any) => {
data.points[0].latitude = val.lat;
data.points[0].longitude = val.lng;
data.points.latitude = val.lat;
data.points.longitude = val.lng;
});
});
</script>

View File

@ -22,12 +22,8 @@
<div class="content-button">
<a-button @click="obtain"></a-button>
<a-button @click="singleShot"></a-button>
<a-button @click="enterDRC" style="background-color: #24d365; border: none"
>进入飞行控制</a-button
>
<a-button @click="exitDRC" style="background-color: #e3150e; border: none"
>退出飞行控制</a-button
>
<a-button @click="enterDRC"></a-button>
<a-button @click="exitDRC">退</a-button>
</div>
<div class="direction-controller">
<img src="@/assets/images/flightoperation/direction_controller.png" alt="" />