From aa0884f1d89769218e8781d99bc53d8f04737a4d Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Thu, 19 Feb 2026 22:20:31 -0500 Subject: [PATCH] feat: Add GPS host script with fixed coordinates for initialization --- gpshost.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gpshost.lua diff --git a/gpshost.lua b/gpshost.lua new file mode 100644 index 0000000..a9f2712 --- /dev/null +++ b/gpshost.lua @@ -0,0 +1,10 @@ +-- Runs a GPS host at boot with fixed coordinates. + +local x, y, z = 0, 64, 0 -- TODO: set these to this computer's GPS host coordinates + +-- If your modem isn't on a default side, open rednet explicitly (optional). +-- Example: +-- local side = "top" +-- if peripheral.getType(side) == "modem" and not rednet.isOpen(side) then rednet.open(side) end + +shell.run("gps", "host", tostring(x), tostring(y), tostring(z)) \ No newline at end of file