aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-16 19:56:46 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-16 19:56:46 +0200
commita182254155f182815ac248d1585992adb41c6f98 (patch)
tree5e8dc4c5aec6d004dc6db623cb39bc08861a398b
parent99fdbb143f973baa0539ad53f89d0b60cf229223 (diff)
Add FQ
-rw-r--r--doc/cc100.txt6
-rw-r--r--robo.go10
2 files changed, 11 insertions, 5 deletions
diff --git a/doc/cc100.txt b/doc/cc100.txt
index 76561e8..535cbe0 100644
--- a/doc/cc100.txt
+++ b/doc/cc100.txt
@@ -15,13 +15,13 @@ Bn Line Scale ?
^p Offset
\p Set Lower Left
Zp Set Upper Right
-!n Speed
+!n Speed 1..10 (10..100mm/s)
TT Home/CR
SOn Set Origin
FA ... Read Distance Correction ?
-FBn,0 Set Distance Correction
+FBn,0 Set Distance Correction -200..200 (-2%..2%)
FC Overcut/Cutter Offset
FD Blade Rotation Control
FE unknown
@@ -43,7 +43,7 @@ FT ...
FUp Cutting Area ?
FV ... returns 13
FW Media Type
-FX Thickness/Force
+FX Thickness/Force 1..30
FY Track Enhancment
TB50,0 ... Landcape ?
diff --git a/robo.go b/robo.go
index fb1030e..50e15be 100644
--- a/robo.go
+++ b/robo.go
@@ -107,6 +107,11 @@ func Ready(c *bufio.ReadWriter) bool {
return parseUnit(recv(c.Reader)) == 0
}
+func (u Unit) UnknownFQ(c *bufio.ReadWriter) Unit {
+ u.send(c.Writer, "FQ", u)
+ return parseUnit(recv(c.Reader))
+}
+
func recv(c *bufio.Reader) string {
ans, err := c.ReadString(ETX)
if err != nil {
@@ -230,8 +235,9 @@ func (d Direction) Step(c *bufio.Writer) { esc(c, NUL, byte(d)) }
// Untested
func BootUpgrade(c *bufio.ReadWriter) string {
- esc(c, 1)
- return c.ReadString(' ')
+ esc(c.Writer, 1)
+ s, _ := c.ReadString(' ')
+ return s
}
func UpdateFirmware(c *bufio.ReadWriter) bool {
return str(c, "CC1VERUP") == string(NUL)