From e7ebc96482393d6b5b7ea4583f0bdb358e4afeeb Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 20 八月 2024 18:35:26 +0800 Subject: [PATCH] # --- app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java b/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java index 1cdd119..f961e6a 100644 --- a/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java +++ b/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java @@ -1,16 +1,48 @@ package com.example.agvcontroller.protocol; +import com.example.agvcontroller.action.BackPaddle; +import com.example.agvcontroller.action.ForceStopAction; import com.example.agvcontroller.action.ForceSwitchAction; +import com.example.agvcontroller.action.ForwardBackAction; +import com.example.agvcontroller.action.FrontPaddle; +import com.example.agvcontroller.action.HandExtendCollect; +import com.example.agvcontroller.action.HandForkRotatopn; import com.example.agvcontroller.action.HandInAction; +import com.example.agvcontroller.action.HandLift; import com.example.agvcontroller.action.HandOutAction; +import com.example.agvcontroller.action.RotatopnLeftRight; +import com.example.agvcontroller.action.SingleSwitchAction; +import com.example.agvcontroller.action.SingleSwitchRunAction; public enum HandleCmdType { - HAND_OUT(0x00, "鎺ㄥ嚭鎵嬪姩妯″紡", HandOutAction.class), + HAND_OUT(0x00, "閫�鍑烘墜鍔ㄦā寮�", HandOutAction.class), HAND_IN(0x01, "杩涘叆鎵嬪姩妯″紡", HandInAction.class), FORCE_SWITCH(0x80, "寮�鍚�/鍏抽棴寮哄埗", ForceSwitchAction.class), + + SINGLE_SWITCH(0x8C , "鍗曡酱浣胯兘", SingleSwitchAction.class), + + SINGLE_SWITCH_RUN(0x8C , "寮哄埗鍗曡酱鐐瑰姩", SingleSwitchRunAction.class), + + FORCE_STOP(0xF0, "鎬ュ仠", ForceStopAction.class), + + FORWARD_BACK(0x81, "鐐瑰姩鍓嶈繘锛堝悗閫�锛�", ForwardBackAction.class), + + ROTATOPN_LEFT_RIGHT(0x82, "鐐瑰姩鏃嬭浆锛堝簳鐩橈級", RotatopnLeftRight.class), + + HAND_LIFT(0x86, "鎵嬪姩鎺у埗鍗囬檷", HandLift.class), + + HAND_FORK_ROTATOPN(0x87, "鎵嬪姩鎺у埗璐у弶鏃嬭浆", HandForkRotatopn.class), + + HAND_EXTEND_COLLECT(0x88, "鎵嬪姩鎺у埗浼哥缉", HandExtendCollect.class), + + FRONT_PADDLE(0x89, "鎵嬪姩鎺у埗鍓嶆嫧鏉�", FrontPaddle.class), + + BACK_PADDLE(0x8A, "鎵嬪姩鎺у埗鍚庢嫧鏉�", BackPaddle.class), + + ; public int cmdCode; -- Gitblit v1.9.1