From dbd005573295293d35647dc0e9feb2beec48a31c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 28 May 2022 13:22:33 +0200 Subject: socat pty tip --- robot/readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'robot/readme.md') 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 `` 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 -- cgit v1.2.3