#
whycq
2024-08-17 d5722c5a50829df634f96bff131fb8cc01f6a17c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.example.agvcontroller.protocol;
 
 
import java.io.Serializable;
 
/**
 * 应答正常包
 * Created by vincent on 2023/3/16
 */
public class AGV_A1_DOWN implements IMessageBody, Serializable {
 
    private static final long serialVersionUID = -1744072958515341165L;
 
    @Override
    public byte[] writeToBytes() {
        return Utils.merge(ackSign, Utils.reverse(temp));
    }
 
    @Override
    public void readFromBytes(byte[] messageBodyBytes) {
 
    }
 
    public byte getAckSign() {
        return ackSign;
    }
 
    public void setAckSign(byte ackSign) {
        this.ackSign = ackSign;
    }
 
    public byte[] getTemp() {
        return temp;
    }
 
    public void setTemp(byte[] temp) {
        this.temp = temp;
    }
 
    private byte ackSign = 0x11;
 
    private byte[] temp = new byte[4];
 
    public String getSerialNo() {
        return "";
    }
 
}