diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-15 02:40:28 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-15 02:40:28 +0200 |
commit | ada146f45cac107928c55780b0adad94d332cdc6 (patch) | |
tree | 4bb93690cf38728990b7f4b77fb0186eb61e8bd8 /robo.go | |
parent | e3cae1b64560df748350dc4c0b11a95ac3a1d4f6 (diff) |
Add more methods
Diffstat (limited to 'robo.go')
-rw-r--r-- | robo.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)) +} |