From 8e6d7c8275117ca2659e7f82051f8af19741aa9d Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 07 二月 2025 16:51:33 +0800 Subject: [PATCH] # --- app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java | 29 +++++++++++++++++++++++++++-- 1 files changed, 27 insertions(+), 2 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 f961e6a..660254e 100644 --- a/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java +++ b/app/src/main/java/com/example/agvcontroller/protocol/HandleCmdType.java @@ -1,22 +1,29 @@ package com.example.agvcontroller.protocol; +import com.example.agvcontroller.action.AllResetAction; import com.example.agvcontroller.action.BackPaddle; +import com.example.agvcontroller.action.CameraResetAction; import com.example.agvcontroller.action.ForceStopAction; import com.example.agvcontroller.action.ForceSwitchAction; +import com.example.agvcontroller.action.ForkResetAction; import com.example.agvcontroller.action.ForwardBackAction; import com.example.agvcontroller.action.FrontPaddle; +import com.example.agvcontroller.action.GyroResetAction; 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.LiftResetAction; +import com.example.agvcontroller.action.LoadResetAction; +import com.example.agvcontroller.action.LoginReset; 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(0x02, "閫�鍑烘墜鍔ㄦā寮�", HandOutAction.class), HAND_IN(0x01, "杩涘叆鎵嬪姩妯″紡", HandInAction.class), @@ -24,9 +31,21 @@ SINGLE_SWITCH(0x8C , "鍗曡酱浣胯兘", SingleSwitchAction.class), - SINGLE_SWITCH_RUN(0x8C , "寮哄埗鍗曡酱鐐瑰姩", SingleSwitchRunAction.class), + SINGLE_SWITCH_RUN(0x8D , "寮哄埗鍗曡酱鐐瑰姩", SingleSwitchRunAction.class), FORCE_STOP(0xF0, "鎬ュ仠", ForceStopAction.class), + + ALL_RESET(0x60, "鏁存満澶嶄綅", AllResetAction.class), + + CAMERA_RESET(0x61, "鐩告満澶嶄綅", CameraResetAction.class), + + GYRO_RESET(0x62, "闄�铻轰华澶嶄綅", GyroResetAction.class), + + LOAD_RESET(0x65, "娓呴櫎璺緞", LoadResetAction.class), + + FORK_RESET(0x66, "璐у弶褰掗浂", ForkResetAction.class), + + LIFT_RESET(0x68, "鍗囬檷褰掗浂", LiftResetAction.class), FORWARD_BACK(0x81, "鐐瑰姩鍓嶈繘锛堝悗閫�锛�", ForwardBackAction.class), @@ -41,6 +60,8 @@ FRONT_PADDLE(0x89, "鎵嬪姩鎺у埗鍓嶆嫧鏉�", FrontPaddle.class), BACK_PADDLE(0x8A, "鎵嬪姩鎺у埗鍚庢嫧鏉�", BackPaddle.class), + + LOGIN_RESET(0x80, "閲嶆柊鐧诲綍", LoginReset.class), ; @@ -66,4 +87,8 @@ return null; } + public String getDesc() { + return desc; + } + } -- Gitblit v1.9.1