Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 9
0
def test_load():
    r = Redeem("/usr/src/redeem/configs")
    r.exit()
Esempio n. 10
0
def test2():
    r = Redeem()
    g = r.printer.processor
    g.execute(Gcode({"message": "G28", "prot": "testing"}))
    r.exit()
Esempio n. 11
0
def test_load():
    r = Redeem("/usr/src/redeem/configs")
    r.exit()
Esempio n. 12
0
def test2():
    r = Redeem()
    g = r.printer.processor
    g.execute( Gcode({"message": "G28", "prot": "testing"}) )
    r.exit()