Commit Graph

6 Commits (6826dad61dc66d17c08895dbc6108a494772b27f)

Author SHA1 Message Date
Guillaume Seguin 6826dad61d Use a regular expression to parse GCodes
This should parse parentheses correctly and handle (valid) gcodes such as
G1X2Y3, while before we were assuming spaces between tokens (which is wrong as
per the G-Code spec). This should fix req #333 in a clean and systematic way.
This is also a component for #343 (Marlin M114 response is in the form ok C:
X11Y22Z33E44, which we can parse with the same expression).
2013-05-18 21:16:09 +02:00
Guillaume Seguin 06e3a02d4f Fix used filament estimation
Compute the max of all total lengths
2013-05-18 20:20:53 +02:00
Guillaume Seguin c6104d56ef Remove "pessimistic" from estimated duration string
The computed duration is no more pessimistic, for a few reasons.
- the main one is that it does not take retraction into account
- Z moves are not taken into account either
- arcs are not supported
- the acceleration code seems to estimate acceleration time correctly but is
  wrong for deceleration
So instead of telling the user this estimation is pessimistic, let's just tell
them this is an estimate.
2013-05-18 19:52:05 +02:00
Guillaume Seguin df00b7e2a1 Don't parse gcodes other than G* (attempt to harden against #303) 2013-05-16 20:32:50 +02:00
Guillaume Seguin 975b45936d Handle N... gcodes in GCoder 2013-05-16 19:16:13 +02:00
Guillaume Seguin a80a2fea4b Move gcoder.py into printrun module 2013-05-16 15:05:28 +02:00