On Sat, Jan 03, 2009 at 06:16:09AM -0000, Chris Morley wrote:
> --- stepconf.py       2009/01/02 12:10:07     1.56
> +++ stepconf.py       2009/01/03 06:16:08     1.57
> @@ -172,9 +172,11 @@
>       self.machinename = _("my-mill")
>       self.axes = 0 # XYZ
>       self.units = 0 # inch
> -     self.steptime = self.stepspace = 5000
> -     self.dirhold = self.dirsetup = 20000
> +     self.steptime = 5000
> +        self.stepspace = 5000
> +     self.dirhold = 20000 
> +        self.dirsetup = 20000

If you can, configure your editor to always use space characters for
inedentation when editing .py files in emc2.

> +        if self.warning_dialog ("Quit Stepconf and discard changes?",False):

Use _("...") for user-visible strings.  This allows them to be
translated int other users' languages:
        if self.warning_dialog (_("Quit Stepconf and discard changes?"),False):

>       drive_characteristics = [
> -         [4000, 500, 20000, 1000],     # Gecko
> +         [4000, 500, 20000, 1000],     # Gecko 201
> +            [4500, 500, 20000, 1000],     # Gecko 202
> +            [1000, 2000, 200 , 200],       # Gecko 203v
> +            [4000, 500, 20000, 1000],     # Gecko 210
> +            [4000, 500, 20000, 1000],     # Gecko 212
>           [500,  4000, 4000, 1000],     # L297   XXX active low
>           [1000, 2000, 1000, 1000],     # PMDX-150
>           [22000, 22000, 100000, 100000], # Sherline  XXX find proper values

> -     self.drivertype = 6 # Other
> +     self.drivertype = 10 # Other

As I did for pins in TRUNK, I think timings need to be keyed off
strings, not numbers.  Otherwise, these kinds of changes break stepconf
files, because the driver type will change when the file is reloaded.

Jeff

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to