示例#1
0
def test_redeem():
    r = Redeem()
    g = r.printer.processor
    for gcode in g.get_test_gcodes():
        logging.info("Testing '" + gcode.message + "'")
        g.execute(gcode)
    r.exit()
    pass
示例#2
0
def test_redeem():
    r = Redeem("/usr/src/redeem/configs")
    g = r.printer.processor
    for gcode in g.get_test_gcodes():
        logging.info("Testing '"+gcode.message+"'")
        g.execute(gcode)
    r.exit()
    pass
示例#3
0
def test_redeem():
    r = Redeem("/usr/src/redeem/configs")
    r.printer.enable.set_enabled()
    g = r.printer.processor
    for gcode in g.get_test_gcodes():
        logging.info("Testing '" + gcode.message + "'")
        g.execute(gcode)
    r.exit()
    pass
示例#4
0
def test_code(test_str):
    r = Redeem("/usr/src/redeem/configs")
    g = r.printer.processor
    for line in test_str.splitlines():
        if line:
            print line
            g.execute( Gcode({"message": line, "prot":"testing"}) )
        
    r.exit()
示例#5
0
def test_code(test_str):
    r = Redeem("/usr/src/redeem/configs")
    r.printer.enable.set_enabled()
    g = r.printer.processor
    for line in test_str.splitlines():
        if line:
            print line
            g.execute(Gcode({"message": line, "prot": "testing"}))

    r.exit()
示例#6
0
def test_file(test):
    r = Redeem("/usr/src/redeem/configs")
    r.printer.enable.set_enabled()
    g = r.printer.processor
    f = open(test, 'r')
    for line in f.readlines():
        if line:
            print line
            g.execute(Gcode({"message": line, "prot": "testing"}))

    r.exit()
    f.close()
示例#7
0
def test4():
    test_str = """
        G28
        G1 F5000.000
        G1 Z0.350
        G1 X-100.0 Y-100.0
        G1 X100.0 Y-100.0
        G1 X100.0 Y100.0
        G1 X-100.0 Y100.0
        G1 X0.0 Y0.0
        """
    r = Redeem()
    g = r.printer.processor
    for line in test_str.splitlines():
        if line:
            print line
            g.execute(Gcode({"message": line, "prot": "testing"}))

    r.exit()
示例#8
0
def test4():
    test_str = """
        G28
        G1 F5000.000
        G1 Z0.350
        G1 X-100.0 Y-100.0
        G1 X100.0 Y-100.0
        G1 X100.0 Y100.0
        G1 X-100.0 Y100.0
        G1 X0.0 Y0.0
        """
    r = Redeem()
    g = r.printer.processor
    for line in test_str.splitlines():
        if line:
            print line
            g.execute( Gcode({"message": line, "prot":"testing"}) )
        
    r.exit()
示例#9
0
def test_load():
    r = Redeem("/usr/src/redeem/configs")
    r.exit()
示例#10
0
def test2():
    r = Redeem()
    g = r.printer.processor
    g.execute(Gcode({"message": "G28", "prot": "testing"}))
    r.exit()
示例#11
0
def test_load():
    r = Redeem("/usr/src/redeem/configs")
    r.exit()
示例#12
0
def test2():
    r = Redeem()
    g = r.printer.processor
    g.execute( Gcode({"message": "G28", "prot": "testing"}) )
    r.exit()