#! /usr/bin/python


# Experimetnal parameters
# 800 micron nozzle @1.2mm width
# @0.7mm layer height
# 
from mecode import G
import numpy as np

heights = [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0]
travel_feed = 600
print_feed = 10
x_width = 50
y_width = 45
spacing = 11.25
extrusion_width = 1.0

g = G()
g.set_home(x=0,y=0)
for idx in range(len(heights)):
    g.absolute()
    g.feed(travel_feed)
    g.move(Z=heights[idx])
    if idx % 2 == 0:
        if idx != 0:
            g.move(-5, x_width)
        g.move(0,0)
        g.move
        g.relative()
        g.triangular_meander(x_width,y_width,spacing,extrusion_width,travel_feed=travel_feed,print_feed=print_feed,start='LL')
    else:
        g.move(-5, -5)
        g.move(0 , y_width)
        g.relative()
        g.triangular_meander(x_width,y_width,spacing,extrusion_width,travel_feed=travel_feed,print_feed=print_feed,start='UR')

g.teardown()

@@ -410,9 +410,9 @@
 ove(
-Z
+z
 =hei
@@ -889,16 +889,25 @@
 ='UR')%0A%0A
+g.view()%0A
 g.teardo

add viewing and fix case on z axis