This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
AceScottie's profile picture

no more worries BigReactors-Turbine script

Started by AceScottie, 10 June 2016 - 11:12 PM
AceScottie #1
Posted 11 June 2016 - 01:12 AM
This is a simple single Turbine script which will keep a turbine about 1800 RPM.
No GUI or monitors needed.
Simple and barebones.
Prints to the computer.

Includes:
- RPM counter
- Energy per Tick
- Efficiency calculator (requires to updates blades variable in code)
- OverSpeed Protection
- Self correction (if the turbine stops or overspeeds will correct its self)

http://pastebin.com/4YEchZ95
Edited on 02 July 2016 - 05:06 PM
PossieTV #2
Posted 11 June 2016 - 01:58 AM
Wouldn't it be simpler to define a blades variable at the beginning and just put that calculation on line 28 so it would look like this


  print("Efficiency: ", math.floor(Steam/(blades*25/100)), "%")

Other than that, nice work. Its neat, simple, and gets the job done without overcomplicating things.

Also on a side note, efficiency was spelled wrong.
Edited on 10 June 2016 - 11:59 PM
AceScottie #3
Posted 02 July 2016 - 07:01 PM
Ok redone some of the code (rotor overspeed wasnt working due to not updating the RPM value)
Also added in the efficiency calculation (and corrected spelling :)/>/> )
new code is here: http://pastebin.com/4YEchZ95
Computer code:
pastebin get 4YEchZ95 startup
Edited on 02 July 2016 - 05:01 PM