From 318bd727e2fe02e4f541dfe943f77606af41d509 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 06 二月 2025 14:30:11 +0800
Subject: [PATCH] #

---
 app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java b/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java
index 8ebe5ca..613de86 100644
--- a/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java
+++ b/app/src/main/java/com/example/agvcontroller/protocol/AGV_F0_UP.java
@@ -24,6 +24,10 @@
         // type
         this.type = Utils.sliceWithReverse(bytes, 4, 1)[0];
 
+        this.battery = Utils.sliceWithReverse(bytes, 32, 1)[0];
+
+
+
 
     }
 
@@ -36,5 +40,10 @@
 
     private byte type;
 
+    private int battery;
+
+    public int getBattery() {
+        return battery;
+    }
 }
 

--
Gitblit v1.9.1