summaryrefslogtreecommitdiff
path: root/robot/readme.md
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-28 13:22:33 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-28 13:22:33 +0200
commitdbd005573295293d35647dc0e9feb2beec48a31c (patch)
tree80ee9ad9f71f97bf02399fcd77ed9a7cef3f3266 /robot/readme.md
parent1ee27617253350485fc95be928cefdd5baf7ab9a (diff)
socat pty tip
Diffstat (limited to 'robot/readme.md')
-rw-r--r--robot/readme.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/robot/readme.md b/robot/readme.md
index e6ab294..8995dfb 100644
--- a/robot/readme.md
+++ b/robot/readme.md
@@ -22,7 +22,14 @@ SIM = true`, the robot code can be compiled for desktop debugging instead. all
used pololu functions must be manually implemented in sim.c for this to work,
but it allows easier debugging. *it's important that the `orangutan_shim.h`
header is used instead of including `<pololu/orangutan.h>` directly for this to
-keep working!*
+keep working!* if you want to use the simulation robot code with the client,
+compile the sim like normal, and use `socat` to create a pseudo-tty and foward
+stdio. this pseudo-tty can be used as the com port argument for the client.
+here's an example command that creates a tty device in this folder:
+
+```
+./a.out headless | socat pty,raw,echo=0,link=tty -
+```
## module hierarchy