Jump to content




Big Reactors + Turbines Controller


1 reply to this topic

#1 xBlizzDevious

  • Members
  • 56 posts

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.

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 by xBlizzDevious, 10 December 2015 - 12:19 PM.


#2 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 10 December 2015 - 12:36 PM

work on managing one turbine, then on managing many turbines

store your turbines in a table to make your life easier





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users