commit b8d75dbcafa0dcd6a5165e1454e414161e6a0a7b
Author: Daniel Pérez <steew@psi.my.domain>
Date: Tue Jan 13 14:47:59 2026 +0000
diff --git a/fw/live-plot/.python-version b/fw/live-plot/.python-version
new file mode 100644
index 0000000..e4fba21
--- /dev/null
+++ b/fw/live-plot/.python-version
@@ -00 +1 @@
+3.12
diff --git a/fw/live-plot/main.py b/fw/live-plot/main.py
new file mode 100644
index 0000000..83a6c8d
--- /dev/null
+++ b/fw/live-plot/main.py
@@ -00 +117 @@
+import serial
+import struct
+
+# Open connection
+def main():
+ print("Opening serial port...")
+ ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=1)
+ while True:
+ read_bytes = ser.read(12)
+ y = struct.unpack('f', read_bytes[0:4])[0]
+ p = struct.unpack('f', read_bytes[4:8])[0]
+ r = struct.unpack('f', read_bytes[8:12])[0]
+ print(f"{y},{p},{r}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/fw/live-plot/pyproject.toml b/fw/live-plot/pyproject.toml
new file mode 100644
index 0000000..900873e
--- /dev/null
+++ b/fw/live-plot/pyproject.toml
@@ -00 +17 @@
+[project]
+name = "live-plot"
+version = "0.1.0"
+description = "Add your description here"
+readme = "README.md"
+requires-python = ">=3.12"
+dependencies = []
diff --git a/fw/live-plot/uv.lock b/fw/live-plot/uv.lock
new file mode 100644
index 0000000..3dabef4
--- /dev/null
+++ b/fw/live-plot/uv.lock
@@ -00 +18 @@
+version = 1
+revision = 3
+requires-python = ">=3.12"
+
+[[package]]
+name = "live-plot"
+version = "0.1.0"
+source = { virtual = "." }