Skip to content

Commit 805c7a9

Browse files
committed
readme and install
1 parent 13a5bb4 commit 805c7a9

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

build_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyinstaller==6.1.0

readme.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# What is this
2+
3+
Converts a gcode file to all "G21" / metric / millimeters.
4+
5+
The Richauto A11/B11 controller on the wood shop "axion precision iconic" CNC routers don't work correctly with inch units.
6+
7+
Without this post-processing script those controllers will read the G20 and use inches for X/Y/Z but NOT for the feed speed. I'm not sure what it does about IJK.
8+
9+
This script works by replacing any G20 (inch) sections of the gcode with G21 (millimeter) versions of the numbers. Command codes modified are A, B, C, F, I, J, K, R, U, V,
10+
11+
If no G20 is in your gcode, this script will not assume inches and it will do nothing. You could add a G20 at the top of your code and try again.
12+
13+
Comments are currently lost in the output because I'm lazy.
14+
15+
16+
# Install
17+
I'm going to try to make releases that are precompiled, but until then:
18+
19+
```bash
20+
git clone [email protected]:Brown-County-FIRST-Robotics/MakeMetricGcode.git
21+
cd MakeMetricGcode
22+
python3 -m venv venv
23+
. venv/bin/activate
24+
pip install -r requirements.txt
25+
```
26+
27+
# Run
28+
```bash
29+
python guimain.py
30+
```
31+
32+
33+
# Build
34+
## Linux
35+
```bash
36+
. venv/bin/activate
37+
pip install -r build_requirements.txt
38+
python pyinstaller -F guimain.py -n make_metric_gcode
39+
```
40+
41+
42+
# Todo
43+
- [ ] build linux release
44+
- [ ] build windows release
45+
- [ ] build mac release
46+
- [ ] better GUI style: https://www.reddit.com/r/Python/comments/lps11c/how_to_make_tkinter_look_modern_how_to_use_themes/
47+
- [ ] stop using easygui or fix the extension ordering in file open and save dialog
48+
- [ ] ignore dot files: https://stackoverflow.com/questions/53220711/how-to-avoid-hidden-files-in-file-picker-using-tkinter-filedialog-askopenfilenam
49+

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
easygui==0.98.3

0 commit comments

Comments
 (0)