moons-motor 0.0.6__tar.gz → 0.0.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {moons_motor-0.0.6 → moons_motor-0.0.7}/PKG-INFO +1 -1
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/motor.py +1 -1
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/simulate.py +3 -3
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor.egg-info/PKG-INFO +1 -1
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor.egg-info/SOURCES.txt +0 -1
- {moons_motor-0.0.6 → moons_motor-0.0.7}/pyproject.toml +1 -1
- moons_motor-0.0.6/moons_motor/example.py +0 -17
- {moons_motor-0.0.6 → moons_motor-0.0.7}/LICENSE +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/README.md +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/__init__.py +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/observer.py +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/status.py +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor/subject.py +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor.egg-info/dependency_links.txt +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor.egg-info/requires.txt +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/moons_motor.egg-info/top_level.txt +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/setup.cfg +0 -0
- {moons_motor-0.0.6 → moons_motor-0.0.7}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: moons_motor
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.7
|
4
4
|
Summary: This is a python library for controlling the Moons' motor through the serial port.
|
5
5
|
Author-email: miroc <mike8503111@gmail.com>
|
6
6
|
Project-URL: Repository, https://github.com/miroc99/moons_motor.git
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import socketio
|
2
|
-
import
|
3
|
-
from observer import Observer
|
2
|
+
from moons_motor.motor import MoonsStepper
|
3
|
+
from moons_motor.observer import Observer
|
4
4
|
import time
|
5
5
|
|
6
6
|
|
7
7
|
class MoonsStepperSimulate(Observer):
|
8
8
|
def __init__(
|
9
9
|
self,
|
10
|
-
moons_motor:
|
10
|
+
moons_motor: MoonsStepper,
|
11
11
|
universe: int = 0,
|
12
12
|
server_address: str = "http://localhost:3001",
|
13
13
|
):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: moons_motor
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.7
|
4
4
|
Summary: This is a python library for controlling the Moons' motor through the serial port.
|
5
5
|
Author-email: miroc <mike8503111@gmail.com>
|
6
6
|
Project-URL: Repository, https://github.com/miroc99/moons_motor.git
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "moons_motor"
|
7
|
-
version = "0.0.
|
7
|
+
version = "0.0.7"
|
8
8
|
authors = [{ name = "miroc", email = "mike8503111@gmail.com" }]
|
9
9
|
description = "This is a python library for controlling the Moons' motor through the serial port."
|
10
10
|
readme = "README.md"
|
@@ -1,17 +0,0 @@
|
|
1
|
-
from motor import MoonsStepper, StepperModules
|
2
|
-
import simulate
|
3
|
-
from time import sleep
|
4
|
-
|
5
|
-
motor = MoonsStepper(StepperModules.STM17S_3RN, "0403", "6001", "TESTA", False)
|
6
|
-
|
7
|
-
simulate = simulate.moons_stepper_simulate(motor, 0, "http://localhost:3002")
|
8
|
-
|
9
|
-
MoonsStepper.list_all_ports()
|
10
|
-
motor.connect()
|
11
|
-
simulate.connect()
|
12
|
-
|
13
|
-
motor.start_jog("", 10)
|
14
|
-
|
15
|
-
sleep(5)
|
16
|
-
|
17
|
-
motor.stop_jog()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|