Content deleted Content added
Added more explainations onto the code itself (Also Title-Cased Titles and bolder warnings) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<br />'''''Warning: |
<br />'''''Warning: Automatic reactors that use microcontroller need you to know lua pilot''''' |
||
''It is recommended to use delay wire auto reactors'' |
''It is recommended to use delay wire auto reactors'' |
||
Line 12: | Line 12: | ||
Delay wire reactors are easiest and cheapest |
Delay wire reactors are easiest and cheapest |
||
For first you need make temperature control, put 2 temperature sensors on reactor and put polysilicon on them both. After config left one to 0:1000 and its polysilicon be deactivate, and on right one put 1000:inf and dont change |
For first you need make temperature control, put 2 temperature sensors on reactor and put polysilicon on them both. After config left one to 0:1000 and its polysilicon be deactivate, and on right one put 1000:inf and dont change polysilicon mode. |
||
[[File:Scheme of delay wire autoreactor.png|thumb|Scheme of delay wire autoreactor red is transformer black is delay wire gray is dispencer orange is trigger wire green is flip flop poly and yellow is reactor]] |
[[File:Scheme of delay wire autoreactor.png|thumb|Scheme of delay wire autoreactor red is transformer black is delay wire gray is dispencer orange is trigger wire green is flip flop poly and yellow is reactor]] |
||
Line 55: | Line 55: | ||
for i=1, #fuel do |
for i=1, #fuel do |
||
if fuel[i] <= eject_treshold then |
if fuel[i] <= eject_treshold then |
||
-- Don't eject when there's no fuel in there |
|||
⚫ | |||
if fuel[i] ~= 0 then |
|||
⚫ | |||
end |
|||
dispenser:Dispense() -- Dispense fresh fuel |
dispenser:Dispense() -- Dispense fresh fuel |
||
wait(1) |
wait(1) |