Using Computer Craft to automate flight, but ran out of space for signal transmission on the ship to give the computer full-control… So I made a tiny analog signal decoder using the scale command:
image.png
image.png
Using Computer Craft to automate flight, but ran out of space for signal transmission on the ship to give the computer full-control… So I made a tiny analog signal decoder using the scale command:
image.png
image.png
yeah, still very much a WIP, player controls are great, but I want to just have to give that computer coordinates and have it fly to them
listen to some sort of info on a specific frequency and then use redstone integrator from AP or just use signal length
what I would do is ditch redstone entirely and have a computer (or turtle) on every control surface
so that way you can have a central computer relay commands to each one with very granular control
wait, wouldn’t that add a lot of weight onto a ship if it has to broadcast to others that are like 10k kg?
not sure about the specific weight of computers or the amount of control surfaces you have
And you can even economise frequencies you use by just using one with specific tables being sent
for every control surface computer
local modem = peripheral.find("modem")
modem.open(7643) -- open channel 7643 to listen to instructions, this can be any channel, preferably above 100 to resolve conflicts with rednet API
while true do
local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
if senderDistance > 30 or senderDistance == nil then -- dont allow instructions from more than 30 blocks away for security purposes
return
else
-- interpret instructions here
end
end
and the interpreter part of the code can check what part of the instructions it should follow
and you can send tables such as:
local inst = {
"type"="airship_instructions",
"channel"=7643,
"left_front_propeller"="0.3",
"right_front_propeller"="0.1",
}
random values, just assume they do something
I had something like that originally, for another computer to control balancing/turning, but it was just really ugly having all those redstone signals sticking out of that computer
you can send information across modems so youd basically just have to interpret with rs api if you want to turn it into redstone signal
its a very cool idea though, analog-enjoyer me really likes the approach
but regardless I think you’re saying that modem don’t have to attach to a computer to allow for signals to be received by it
modem needs to be attached to a computer either on one of its sides or through a wired modem to another computer
This conversation is on Discord · Reply there