aboutsummaryrefslogtreecommitdiff
path: root/marks.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-28 22:56:45 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-28 22:56:45 +0200
commit8ca934bd32b9555ca786858a73cb3bad361340c4 (patch)
tree91a1ecbf65e9c35ef4ef2627780b3271397ff581 /marks.go
parent1ed727e3c7fd7e677d83db941059d9edfbaef6d7 (diff)
Add marks (broken)
Diffstat (limited to 'marks.go')
-rw-r--r--marks.go42
1 files changed, 42 insertions, 0 deletions
diff --git a/marks.go b/marks.go
new file mode 100644
index 0000000..8a37b4d
--- /dev/null
+++ b/marks.go
@@ -0,0 +1,42 @@
+package main
+
+/*
+ Marks
+ +-- --+
+ | |
+
+
+
+ |
+ +--
+
+ Offset: 10mm (200 pt)
+ Length: 20mm (400 pt)
+ Width: 190mm (3800 pt)
+ Height: 262mm (5240 pt)
+*/
+
+// 5440 x 4000
+// Origin: 200x200
+
+func (c Cutter) DrawMarks() (string, error) {
+ c.Move(Point{600, 3800})
+ c.Draw(Point{200, 3800})
+ c.Draw(Point{200, 3400})
+
+ c.Move(Point{200, 600})
+ c.Draw(Point{200, 200})
+ c.Draw(Point{600, 200})
+
+ c.Move(Point{4840, 200})
+ c.Draw(Point{5240, 200})
+ c.Draw(Point{5240, 600})
+
+ return c.readResponse()
+}
+
+func (c Cutter) SearchMarks() {
+ //cmd := []string{"TB99", "TB55,1", "TB123,3800,5240"}
+ cmd := []string{"TB99", "TB55,1", "TB23,3800,5240"}
+ c.Raw(cmd)
+}