-- SemSat1_
-- GPS Communication Satellite Network #1
-- by SemlerPDX Aug6th 2021
-- pastebin get sTX6sk4g startup
-- Set thisNode to equal this location on satellite:
-- 0=North 1=South 2=East 3=West
local thisNode = --set 0-3
local modem = peripheral.wrap("bottom")
term.clear()
term.setCursorPos(1,1)
term.write("Node: SemSat1_")
term.setCursorPos(1,2)
if thisNode == 0 then
shell.run("gps","host",646,372,255)
elseif thisNode == 1 then
shell.run("gps","host",646,378,255)
elseif thisNode == 2 then
shell.run("gps","host",649,375,252)
elseif thisNode == 3 then
shell.run("gps","host",643,375,252)
else
term.write("<error420> - node not set")
end
Comments