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 feed rate will be sped up to, compared to the original feed rate, the default is 1.5.

The equation to set the feed rate is from Shane Hathaway's description at:
http://shane.willowrise.com/archives/delay-compensation-in-firmware/

The following examples unpause the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and unpause.py.


> python unpause.py
This brings up the unpause dialog.


> python unpause.py Screw Holder Bottom.stl
The unpause tool is parsing the file:
Screw Holder Bottom.stl
..
The unpause tool has created the file:
.. 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()
The unpause tool is parsing the file:
Screw Holder Bottom.stl
..
The unpause tool has created the file:
.. Screw Holder Bottom_unpause.gcode

 
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.meta_plugins.polyfile
skeinforge_tools.skeinforge_utilities.preferences
sys

 
Classes
       
UnpauseRepository
UnpauseSkein

 
class UnpauseRepository
    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, unpauseRepository, gcodeText)
Parse gcode text and store the unpause gcode.
getUnpausedArcMovement(self, line, splitLine)
Get an unpaused arc movement.
getUnpausedFeedRateMinute(self, location, splitLine)
Get the feed rate 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, unpauseRepository=None)
Unpause a gcode linear move file or text.
getCraftedTextFromText(gcodeText, unpauseRepository=None)
Unpause a gcode linear move text.
getRepositoryConstructor()
Get the repository constructor.
getSelectedPlugin(unpauseRepository)
Get the selected plugin.
main()
Display the unpause dialog.
writeOutput(fileName='')
Unpause a gcode linear move file.

 
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)