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

ccSensors - Detect only MFSU EU.

Started by HendRoox, 18 July 2014 - 07:57 AM
HendRoox #1
Posted 18 July 2014 - 09:57 AM

while true do
sleep(1)
mon = peripheral.wrap("right")
mon.clear()
mon.setTextScale(2)
ctrl = sensors.getController()
data = sensors.getSensors(ctrl)
reactorSensor = data[1]
data = sensors.getSensorInfo(ctrl,reactorSensor)
sensors.setSensorRange(ctrl,reactorSensor,"2")
data = sensors.getProbes(ctrl,reactorSensor)
eustorageProbe = data[3]
data = sensors.getAvailableTargetsforProbe(ctrl,reactorSensor,eustorageProbe)
mfsuTarget = data[3]
sensors.setTarget(ctrl,reactorSensor,mfsuTarget)
data = sensors.getSensorReadingAsDict(ctrl,reactorSensor,mfsuTarget,eustorageProbe)
mon.setCursorPos(1, 1)
mon.write("MFSU EU:"..data.energy)
mon.setCursorPos(1, 2)
mon.write("MFSU Out:"..data.output)
end

How to convert to write all MFSU? :/
theoriginalbit #2
Posted 18 July 2014 - 10:08 AM
Please don't make multiple threads for the same program/problem. Due to the discussion in your other thread I'm going ahead and locking this one, please use the thread in General.
Edited on 18 July 2014 - 08:08 AM