Skip to content

Commit 8b2fb72

Browse files
committed
fix readme and add gitigore
1 parent 4a3dff1 commit 8b2fb72

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__
2+
.DS_Store

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ movement of mechanical systems. Below is a simple diagram of a motion control sy
1111
```mermaid
1212
graph LR
1313
subgraph Control_Flow
14-
A[Computer] --->|Commands|---> B[Motion Control Card]
15-
B --->|Control Signals|---> C[Motor Driver]
16-
C --->|Power|---> D[Motor]
17-
D --->|Movement|---> E[Mechanical System]
14+
A[Computer] --> |Commands| --> B[Motion Control Card]
15+
B --> |Control Signals| --> C[Motor Driver]
16+
C --> |Power| --> D[Motor]
17+
D --> |Movement| --> E[Mechanical System]
1818
end
1919
subgraph Feedback_Loop
20-
E --->|Feedback|---> F[Sensor]
21-
F --->|Data|---> B ---> A
20+
E --> |Feedback| --> F[Sensor]
21+
F --> |Data| --> B --> A
2222
end
2323
```
2424

example.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def close(self):
3636

3737
def send_cmd(
3838
self,
39-
cmd_lock: threading.Lock,
4039
cmd: str,
4140
direct_or_execute: str = "direct"
4241
) -> str:
@@ -58,13 +57,13 @@ def send_cmd(
5857
response : str
5958
The response detail.
6059
"""
61-
with cmd_lock:
60+
with self._cmd_lock:
6261
if direct_or_execute == "direct":
6362
# direct command interface, only supports motion functions, parameters and array variables configuration
64-
success, response = zmotion_direct(controller_handle, cmd)
63+
success, response = zmotion_direct(self._controller_handle, cmd)
6564
else:
6665
# Universal command execution interface, getting block when the controller is not buffered
67-
success, response = zmotion_execute(controller_handle, cmd)
66+
success, response = zmotion_execute(self._controller_handle, cmd)
6867

6968
if not success == 0:
7069
raise ConnectionError(

manual_compilation/.DS_Store

-6 KB
Binary file not shown.

runtime_compilation/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)