aboutsummaryrefslogtreecommitdiff
path: root/robo.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 02:40:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 02:40:28 +0200
commitada146f45cac107928c55780b0adad94d332cdc6 (patch)
tree4bb93690cf38728990b7f4b77fb0186eb61e8bd8 /robo.go
parente3cae1b64560df748350dc4c0b11a95ac3a1d4f6 (diff)
Add more methods
Diffstat (limited to 'robo.go')
-rw-r--r--robo.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/robo.go b/robo.go
index a57807f..b447ba7 100644
--- a/robo.go
+++ b/robo.go
@@ -108,3 +108,13 @@ func Version(c *bufio.ReadWriter) string {
send(c.Writer, "FG")
return recv(c.Reader)
}
+
+func GoHome(c *bufio.Writer) { send(c, "TT") }
+func Home(c *bufio.Writer) { send(c, "H") }
+func Origin(c *bufio.Writer) { send(c, "FJ") }
+func Calibrate(c *bufio.Writer) { send(c, "TB70") }
+
+func Calibration(c *bufio.ReadWriter) Point {
+ send(c.Writer, "TB71")
+ return NewPoint(recv(c.Reader))
+}