acidjazz / drmon

Draconic Reactor computercraft monitoring and failsafe interface
60 stars 84 forks source link

Auto increment #21

Open mm04926412 opened 6 years ago

mm04926412 commented 6 years ago

I have been attempting to edit this code so that on each update the output limit will increase or decrease proportionally difference between the temperature and a defined target temperature, ri.temperature keeps returning nil when I add the code directly, do you know why that is or how it could be fixed?

---EDIT---

I fixed this, I have changed autoinput mode to a full auto mode that on every update changes the out put limit to

Limit = generation + (Target Temperature - Current Temperature) * 50

Where Target Temperature is defined in by the user and defaults to 7000 I encourage you to use the code it's working very well for long term management and I've uploaded it as a branch