summaryrefslogtreecommitdiff
path: root/protocol.md
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-25 19:16:41 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-25 19:16:41 +0200
commit931cf5f2c3a0fdf947ba2c4b839bc886a43b4701 (patch)
treefe3010cf1862400ec171fe728752ef76e2447f4c /protocol.md
parent734e5ea7d05c0cebf219cff78c6b0794f4cbe9ae (diff)
implement ping command
Diffstat (limited to 'protocol.md')
-rw-r--r--protocol.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol.md b/protocol.md
index d41b00f..4db4032 100644
--- a/protocol.md
+++ b/protocol.md
@@ -27,12 +27,12 @@ and the starting byte don't count towards message length.
opcodes are picked sequentially, but the direction bit (LSB) is reserved to
indicate a transfer from robot to client (`tx`). this means that the opcode for
a sensor data request would be `0x12`, but the response opcode would be `0x13`.
-these opcodes are stored as enum constants inside consts.h for code
+these opcodes are stored as enum constants inside shared/protocol.h for code
readability.
|code|name|implemented|directions|full name|
|--:|---|:-:|:-:|---|
-|`0x00`|[PING](#ping)|no|`r <=> c`|<u>ping</u>
+|`0x00`|[PING](#ping)|yes|`r <=> c`|<u>ping</u>
|`0x02`|[EXPT](#expt)|no|`r --> c`|<u>ex</u>ce<u>pt</u>ion
|`0x04`|[MODE](#mode)|no|`r <=> c`|<u>mode</u>
|`0x06`|[SPED](#sped)|no|`r <-- c`|<u>spe</u>e<u>d</u>