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) +}