-
Notifications
You must be signed in to change notification settings - Fork 6
/
INSTRUCTIONSET
64 lines (35 loc) · 1.15 KB
/
INSTRUCTIONSET
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
PID controller remote interface instruction set
Request: 1 byte, MSB to LSB
_ _ _ _ _ _ _ _ [optional] FLOAT VALUES
4 byte each
opcode variable/ reserved
command
opcode
0 - read
1 - write
variable/command
0100 - setpoint
0101 - Kp
0110 - Ki
0111 - Kd
1000 - Ei
1001 - EpL
1010 - EiL
specials (opcode is always 0)
0000 - stream stop
0001 - stream start
1011 - save to EEPROM
Response: 1 byte, MSB to LSB
_ _ _ _ _ _ _ _ [optional] FLOAT VALUES
4 byte each
opcode variable result reserved/
stream prefix
opcode, variable/command
see above
result
0 - success
1 - error
stream prefix
01 (so entire response byte is 0x01, then float values follows)
Notes
One can define custom commands following specified rules and using vacant values