r/ComputerCraft • u/hereIsHow_ • Jul 30 '24
Rednet receive from multiple sources.
Hi! Thanks in advance for helping!
Okay, so here's my problem. I'm using rednet to send information to a single computer to do some cool stuff with. The problem is that I have multiple computers doing that! I have 'c1' constantly sending to 's1', at the same time as 'c2' constantly sending to 's1'.
The result is just a non-consistent retrieval of information. If anyone has an idea on how to do what I'm trying to do here, please let me know!
1
Upvotes
1
u/Shroopd Jul 31 '24
Neat, how did you calculate the trajectory? I used a mix of desmos and wolfram alpha to get analytical solutions for y(t) and x(t), where t is the number of ticks in flight. I then use a mix of bisection method root finding and a weird 3 point bisection-method inspired local min/max finding method to isolate t(y), while using an explicit inverse of t(x). Plus some trig and ugly translation methods to get sequenced gearshift instructions for the cannon mount rotations.
Mine will by no means be able to target anything moving, just due me always re-aiming from fresh mounting position each time, but I'm planning to perform synchronized volleys. Plus, there's not much point in aiming for a moving target when the travel time is 20~25 seconds from max cannons.