Posted 10 December 2015 - 12:16 PM
Hello all,
I'm wanting to write a program that can control 25 turbines attached to a max output, actively cooled Big Reactor.
I want the program to be able to control how many turbines should be switched on dependent on the RF stored in a Draconic Evolution Energy Core.
Ideally, I'd like the turbines to ALL be kept running at their optimum speed at all times and then to engage or disengage the coils in them as necessary.
Firstly: is this possible?
Second: Is it overly complicated to acheive?
Third: I don't really know the logic I need to use to acheive this. How would I go about it?
Note: Unless you want to write a program for me, I'm happy with you guiding me in the right direction.
Edit: here's the simple code that I use to control a passive reactor at the moment. I want the effect of this code but with multiple turbines and an actively cooled reactor instead of a single, passive reactor.
I'm wanting to write a program that can control 25 turbines attached to a max output, actively cooled Big Reactor.
I want the program to be able to control how many turbines should be switched on dependent on the RF stored in a Draconic Evolution Energy Core.
Ideally, I'd like the turbines to ALL be kept running at their optimum speed at all times and then to engage or disengage the coils in them as necessary.
Firstly: is this possible?
Second: Is it overly complicated to acheive?
Third: I don't really know the logic I need to use to acheive this. How would I go about it?
Note: Unless you want to write a program for me, I'm happy with you guiding me in the right direction.
Edit: here's the simple code that I use to control a passive reactor at the moment. I want the effect of this code but with multiple turbines and an actively cooled reactor instead of a single, passive reactor.
sleep(5)
curEnergy = 0
curPercent = 0
br = peripheral.wrap("back")
while true do
curEnergy = 0
curPercent = 0
term.clear()
term.setCursorPos(1,1)
curEnergy = br.getEnergyStored()
curPercent = math.ceil(curEnergy/100000)
print(curEnergy)
print(curPercent)
if curPercent == 100 then
br.setActive(false)
else
br.setActive(true)
end
br.setAllControlRodLevels(curPercent)
sleep(1)
end
Edited on 10 December 2015 - 11:19 AM