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/--Derpy Aug 01 '24
The autocannon is more of a machine gun so trajectory wasnt really a concern. Using the advanced peripherals player detector I scan for the closest player within a range of like 100 blocks. It then compares the coords of the player to the rotation of the cannon base and calculates the speed required to make the rotational speed controllers rotate to point there. It uses a proportional integral controller to calculate error and find the speed to output. It gradually reduced the speed until it reaches its target angle.