skeinforge_tools.unpause ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/unpause.py

`Unpause is a script to speed up a line segment to compensate for the delay of the microprocessor.
The default 'Activate Unpause' checkbox is on. When it is on, the functions described below will work, when it is off, the functions
will not be called.
The unpause script is based on the Shane Hathaway's patch to speed up a line segment to compensate for the delay of the
microprocessor. The description is at:
http://shane.willowrise.com/archives/delay-compensation-in-firmware/
The "Delay (milliseconds)" preference is the delay on the microprocessor that will be at least partially compensated for. The
default is 28 milliseconds, which Shane found for the Arduino. The "Maximum Speed" ratio is the maximum amount that the
feedrate will be sped up to, compared to the original feedrate, the default is 1.5.
To run unpause, in a shell type:
> python unpause.py
The following examples unpause the files Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains
Screw Holder Bottom.stl & unpause.py. The function writeOutput checks to see if the text has been unpaused, if not they call
getFilletChainGcode in fillet.py to fillet the text; once they have the filleted text, then it unpauses.
> python unpause.py
This brings up the dialog, after clicking 'Unpause', the following is printed:
File Screw Holder Bottom.stl is being chain unpaused.
The unpaused file is saved as Screw Holder Bottom_unpause.gcode
>python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import unpause
>>> unpause.main()
This brings up the unpause dialog.
>>> unpause.writeOutput()
Screw Holder Bottom.stl
File Screw Holder Bottom.stl is being chain unpaused.
The unpaused file is saved as Screw Holder Bottom_unpause.gcode
The equation to set the feedrate is from Shane Hathaway's description at:
http://shane.willowrise.com/archives/delay-compensation-in-firmware/`

Modules
`` |  |
__init__ skeinforge_tools.analyze cStringIO skeinforge_tools.skeinforge_utilities.euclidean | skeinforge_tools.fillet skeinforge_tools.skeinforge_utilities.gcodec skeinforge_tools.skeinforge_utilities.intercircle skeinforge_tools.skeinforge_utilities.interpret | os skeinforge_tools.polyfile skeinforge_tools.skeinforge_utilities.preferences sys | time

Classes
`` |  | UnpausePreferences UnpauseSkein
class UnpausePreferences
`` | `A class to handle the unpause preferences.`
| Methods defined here: __init__(self) `Set the default preferences, execute title & preferences fileName.` execute(self) `Unpause button has been clicked.`
class UnpauseSkein
`` | `A class to unpause a skein of extrusions.`
| Methods defined here: __init__(self) addLine(self, line) `Add a line of text and a newline to the output.` getLinearMoveWithFeedrate(self, feedrate, location) `Get a linear move line with the feedrate.` getRounded(self, number) `Get number rounded to the number of carried decimal places as a string.` getUnpausedFeedrateMinute(self, location, splitLine) `Get the feedrate which will compensate for the pause.` getUnpausedLine(self, splitLine) `Bevel a linear move.` parseGcode(self, unpausePreferences, gcodeText) `Parse gcode text and store the unpause gcode.` parseInitialization(self) `Parse gcode initialization and store the parameters.` parseLine(self, line) `Parse a gcode line.`

Functions
`` |  | getSelectedPlugin(unpausePreferences) `Get the selected plugin.` getUnpauseChainGcode(fileName, gcodeText, unpausePreferences=None) `Unpause a gcode linear move text. Chain unpause the gcode if it is not already unpaused.` getUnpauseGcode(gcodeText, unpausePreferences=None) `Unpause a gcode linear move text.` main(hashtable=None) `Display the unpause dialog.` writeOutput(fileName='') `Unpause a gcode linear move file. Chain unpause the gcode if it is not already unpaused. If no fileName is specified, unpause the first unmodified gcode file in this folder.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)