From b964c0368e9c4f920ef1517ab98145efed9fffd1 Mon Sep 17 00:00:00 2001 From: yanmeng <513683375@qq.com> Date: Tue, 7 Mar 2023 16:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=9E=E6=9C=BA=E8=99=9A=E6=8B=9F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icon/keyboard.svg | 1 + src/assets/icon/keyboard_active.svg | 1 + src/components/clickController.vue | 309 ++++++++++++++++++ src/utils/droneCommand.js | 16 + .../dashboard/components/remoateSensing.vue | 253 ++++++++++++++ src/views/dashboard/index.vue | 48 ++- 6 files changed, 626 insertions(+), 2 deletions(-) create mode 100644 src/assets/icon/keyboard.svg create mode 100644 src/assets/icon/keyboard_active.svg create mode 100644 src/components/clickController.vue create mode 100644 src/utils/droneCommand.js create mode 100644 src/views/dashboard/components/remoateSensing.vue diff --git a/src/assets/icon/keyboard.svg b/src/assets/icon/keyboard.svg new file mode 100644 index 0000000..10eb574 --- /dev/null +++ b/src/assets/icon/keyboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icon/keyboard_active.svg b/src/assets/icon/keyboard_active.svg new file mode 100644 index 0000000..67be351 --- /dev/null +++ b/src/assets/icon/keyboard_active.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/clickController.vue b/src/components/clickController.vue new file mode 100644 index 0000000..c406345 --- /dev/null +++ b/src/components/clickController.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/src/utils/droneCommand.js b/src/utils/droneCommand.js new file mode 100644 index 0000000..2a6e791 --- /dev/null +++ b/src/utils/droneCommand.js @@ -0,0 +1,16 @@ +export default { + hovering: { 'zhilin': '01' }, + goBack: { 'zhilin': '03' }, + endLanding: { 'zhilin': '02' }, + movingToLeft: { 'yaogan': '04' }, + movingToRight: { 'yaogan': '05' }, + movingToForward: { 'yaogan': '06' }, + MovingToBack: { 'yaogan': '07' }, + rising: { 'yaogan': '08' }, + falling: { 'yaogan': '09' }, + rollingToLeft: { 'yaogan': '10' }, + rollingToRight: { 'yaogan': '11' }, + stopAction: { 'yaogan': '12' }, + excuteTask: { 'zhilin': '04' }, + environmentCheck: { 'zhilin': '05' } +} diff --git a/src/views/dashboard/components/remoateSensing.vue b/src/views/dashboard/components/remoateSensing.vue new file mode 100644 index 0000000..ff8ac4e --- /dev/null +++ b/src/views/dashboard/components/remoateSensing.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1b5a4be..7e6b72a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,16 +2,22 @@
+