-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Uniformize the usage of "Vector" for "position" property in Tic and M3FS * Fix issue #12 * Autodetect CNCRouter dev device * Black Format * Initialisation of files for GUI * Usage of Enum (python 3.9) instead of StrEnum (python 3.10) * Position label and regular updates (100ms) * Move buttons * Fix Readthedocs configuration * Add home() function for stages * Code formating * Put home button at the center of gui * Implement Home function for CNC and make Home button on gui effective * Formatting files and little updates to remove warnings * raise exception in case of device not found for tic * Find devices per serial number * Add comport selection in gui * Remove magic numbers in M3FS code * GUI update: enable/disable controls while connection is not done, add absolute position move, usage of validators * Find devices per serial number, usage for Corvus * Adding Qt Event processing as wait routine in GUI + typing * Make home function not abstract with default implementation * Add the possibility to perform wait-routine while homing * Remove several linter warnings * Update comments * Update to PyQt6 in documentation and requirements * Enforce Exception raise when ALARM is reported by the CNC Sometimes the CNC does not answer to '?'. Returns after 10 tries to get a byte considering the 1 second timeout. In get_status, retries if there has been no answer from the CNC * Bumping version and correcting typo * Update docs * Update pyproject.toml Put 'beta' in version * Add M3FS in GUI * Bump version * Update pyproject.toml * Update conf.py * Removing "(object)" in "Vector" class definition
- Loading branch information
1 parent
0bac827
commit f2fd098
Showing
21 changed files
with
683 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.8" | ||
|
||
python: "3.9" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: requirements.txt | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# PyStages GUI | ||
|
||
A user interface has been implemented to control the stages. | ||
|
||
You can run it with the following command: | ||
|
||
```bash | ||
python -m pystages.gui | ||
``` | ||
|
||
This tool presents basic controls. After connection to the stage, it polls the position and prints out | ||
at the bottom of the window. | ||
|
||
## Stage selection and connection | ||
|
||
Select the type of stage that you want to control and chose either a serial port to connect to, or select `Auto detect` | ||
to make pystage to select the correct one according to the device description. | ||
|
||
Then click to `Connect`. If the connection success, the control buttons are activated. | ||
|
||
## Relative move | ||
|
||
You can click on buttons to move for a positive of negative relative distance. | ||
The direction correspond to the axis number of the stage (`X` for first axe, `Y` for the second one, | ||
`Z` for the third one). The moving distance is selected throug the `Step` dropdown menu. | ||
|
||
## Absolute move | ||
|
||
You can enter absolute coordinates in the 3 entry boxes and trigger the move by clicking the `Go To Position` button. | ||
|
||
## Z offset | ||
|
||
The `Z offset` checkbox and dropdown menu permit for each horizontal move (X or Y) | ||
to make first a vertical-up displacement (Z+) followed by the | ||
actual move, and then a final vertical-down displacement (Z-). | ||
|
||
## Homing | ||
|
||
The `Home` button permits to trigger the calibration process of the stage. | ||
Be careful that your setup is clear before using it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pyserial | ||
pyusb | ||
numpy | ||
sphinx | ||
sphinx-rtd-theme | ||
myst-parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.