Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = peripheral.wrap("back")
- while true do
- sleep(15)
- rpm = t.getRotorSpeed()
- flow = t.getFluidFlowRate()
- if rpm < 1700 then
- flow = flow + 5
- t.setFluidFlowRateMax(flow)
- print(flow)
- print(rpm)
- end
- if rpm > 1750 then
- flow = flow - 5
- t.setFluidFlowRateMax(flow)
- print(flow)
- print(rpm)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement