Posted 23 September 2013 - 11:10 PM
                I made this but it isnt doing anything 
(its not completely done)
what should happen is if gets a rs signal it will say its sleeping and wont do anything (liquid in tank) and if there isnt any it will say "checking" and test again in 10 seconds. if there is still no liquid it will send a rs.bundledoutput, say (moving) wait, then stop the signal
but some reson it wont get started… it doesnt say anything and doesnt send the rs.bundled cable
should i change print to term.write? also whats the difference?
and i know i'll get this, ill put a term.clear() and a setCursorPos
what will make this work?
                
            (its not completely done)
x = rs.getBundledInput("left", colors.magenta)
while true do
  if x == true then
    print("sleeping")
    sleep(10)
    elseif x == false then
	  term.clear()
	  setCursorPos(1,1)
	  print("checking")
	  sleep(10)
	  if x == false then
	    term.clear()
	    setCursotPos(1,1)
	    print("moving")
	    rs.setBundledOutput("left",colors.red)
	    rs.setBundledOutput("right",colors.red)
	    sleep(.5)
	    rs.setBundledOutput("left", 0)
	    rs.setBundledOutput("right", 0)
	  end
    end
  end
what should happen is if gets a rs signal it will say its sleeping and wont do anything (liquid in tank) and if there isnt any it will say "checking" and test again in 10 seconds. if there is still no liquid it will send a rs.bundledoutput, say (moving) wait, then stop the signal
but some reson it wont get started… it doesnt say anything and doesnt send the rs.bundled cable
should i change print to term.write? also whats the difference?
and i know i'll get this, ill put a term.clear() and a setCursorPos
what will make this work?