forgot a few things..

This commit is contained in:
Jesus Zen Droïd 2024-03-09 14:36:55 +01:00
parent ada8ebfa13
commit d75b6d9d8a
4 changed files with 24 additions and 12 deletions

View File

@ -8,13 +8,16 @@ for python.
# Installation
Somthing in the order of
```
git clone git@github.com:petaflot/pygcode.git
git clone git@github.com:petaflot/pygcode.git --depth=1
cd pygcode
pip install -e .
```
Make sure you set `_DEFAULT_` to the dialect you want to use in `src/pygcode/dialects/__init__.py`
## Configuration
Make sure you set `_DEFAULT_` to the dialect you want to use in `src/pygcode/dialects/__init__.py` ; this is absolutely suboptimal, contributions are welcome. Also, note that `marlin2` flavor covers all versions of Marlin ; due to some functional redundances, some commands have been commented out (typically for bed leveling and delta bots, see `src/pygcode/gcodes_marlin.py`).
# Documentation

View File

@ -48,7 +48,16 @@
> # """G34: Modern replacement for Průša's TMC_Z_CALIBRATION"""
> # param_letters = "SZ"
> # word_key = Word('G', 34)
1045,1048c1045,1048
362,367c362
< param_letters = "PWETSI"
< word_key = Word('M', 43)
<
< class GCodeTogglePinsb(GCodeIO):
< """M43T: Toggle pins states"""
< param_letters = "SLIRW"
---
> param_letters = "PWETSIRL"
1045,1048c1040,1043
< class GCodeDeltaConfiguration(GCodeMachineConfig):
< """M665: Set delta geometry values"""
< param_letters = "HLRSXYZABC"
@ -58,7 +67,7 @@
> # """M665: Set delta geometry values"""
> # param_letters = "HLRSXYZABC"
> # word_key = Word('M', 665)
1060,1063c1060,1063
1060,1063c1055,1058
< class GCodeSetDeltaEndstopAdjustmentsa(GCodeMachineConfig):
< """M666: Set Delta endstop adjustments"""
< param_letters = "XYZ"

View File

@ -108,10 +108,10 @@ class GCodeBedLevelingBilinearm2(GCodeMachineRoutines):
# param_letters = ""
# word_key = Word('G', 29)
class GCodeBedLevelingUnifiedm3(GCodeMachineRoutines):
"""G29: Probe the bed and enable leveling compensation."""
param_letters = "ABCDEFHIJKLPQRSTUVWXY"
word_key = Word('G', 29)
#class GCodeBedLevelingUnifiedm3(GCodeMachineRoutines):
# """G29: Probe the bed and enable leveling compensation."""
# param_letters = "ABCDEFHIJKLPQRSTUVWXY"
# word_key = Word('G', 29)
class GCodeSingleZProbe(GCodeMachineRoutines):
"""G30: Probe bed at current XY location"""

View File

@ -1,14 +1,14 @@
#!/usr/bin/env python
# vim: number ts=4
"""
generate src/pygcode/gcode_marlin.py based on official documentation
generate src/pygcode/gcode_marlin.py based on MarlinDocumentation
NOTE: because of a few silly names that are not very explicit and cause collisions,
using fork found here: https://github.com/petaflot/MarlinDocumentation
"""
from string import ascii_letters
class_types = {
# unused: GCodeDistanceMode
# unused: GCodePathControlMode
# unused: GCodeProgramControl
'g000': 'GCodeMotion', # LinearMove
'g002': 'GCodeArcMove', # GCodeMotion > ArcOrCircleMove
'g004': 'GCode', # Dwell