Worker Logger
Bases: QObject
A class representing a worker for logging data.
Attributes:
| Name | Type | Description |
|---|---|---|
log_file_path |
str
|
Path to the log file. |
Source code in GUI.py
__init__(log_file_path)
Initialize the WorkerLogger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_file_path |
str
|
Path to the log file. |
required |
Source code in GUI.py
log(time, state, pos, M, E)
Log data to the log file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time |
float
|
Time value. |
required |
state |
str
|
State information. |
required |
pos |
dict
|
Dictionary containing position information. |
required |
M |
dict
|
Dictionary containing motor speed values. |
required |
E |
dict
|
Dictionary containing error values. |
required |