skeinforge_tools.craft_plugins.unpause ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/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
getChainGcode in home.py to home the text; once they have the homed 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.skeinforge_utilities.consecution
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.intercircle
skeinforge_tools.skeinforge_utilities.interpret
math
skeinforge_tools.polyfile
skeinforge_tools.skeinforge_utilities.preferences
sys

 
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)
getCraftedGcode(self, unpausePreferences, gcodeText)
Parse gcode text and store the unpause gcode.
getUnpausedArcMovement(self, line, splitLine)
Get an unpaused arc movement.
getUnpausedFeedrateMinute(self, location, splitLine)
Get the feedrate which will compensate for the pause.
getUnpausedLinearMovement(self, splitLine)
Get an unpaused linear movement.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line.

 
Functions
       
getCraftedText(fileName, text, unpausePreferences=None)
Unpause a gcode linear move file or text.
getCraftedTextFromText(gcodeText, unpausePreferences=None)
Unpause a gcode linear move text.
getDisplayedPreferences()
Get the displayed preferences.
getSelectedPlugin(unpausePreferences)
Get the selected plugin.
main()
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)