From 9552686871bbcf751cda82c5b17dbde2b0bf1751 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sun, 18 May 2025 19:38:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E8=AF=95=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/debug/index.vue | 165 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 145 insertions(+), 20 deletions(-) diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index ef48d9a..b18a393 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -506,6 +506,56 @@ const debug_cap_out_heat_area = async () => { } await debugStore.sendControl(params) } + +const debug_cap_up_one = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_cap_up_one', + params: {}, + } + await debugStore.sendControl(params) +} + +const debug_cap_down_one = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_cap_up_one', + params: {}, + } + await debugStore.sendControl(params) +} + +const debug_enable_all_motor = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_enable_all_motor', + params: {}, + } + await debugStore.sendControl(params) +} + +const debug_disabled_all_motor = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_disabled_all_motor', + params: {}, + } + await debugStore.sendControl(params) +} + +const debug_stop_all_motor = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_stop_all_motor', + params: {}, + } + await debugStore.sendControl(params) +}