-- ############################################
-- radio_ctrl (turtle side)
-- version 0.1
-- http://hevohevo.hatenablog.com/
-- 1. Refer to controller side program (http://pastebin.com/uJfWnku6).
-- 2. Input to the following and reboot TurtleOS
-- > pastebin get 0ian5ggx startup
-- ################## config ##################
ModemSide = "right"
ControllerID = nil -- set id, if you need to restrict controller ID.
-- ################## main ####################
rednet.open(ModemSide)
function eval(str)
assert(loadstring(str))()
end
while true do
local sender_id, message, distance = rednet.receive()
if not ControllerID or (sender_id == ControllerID) then eval(message) end
end