ariel-tcu 0.17.3__py3-none-any.whl → 0.18.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ariel_tcu/settings.yaml +4 -0
- ariel_tcu-0.18.0.dist-info/METADATA +40 -0
- ariel_tcu-0.18.0.dist-info/RECORD +16 -0
- {ariel_tcu-0.17.3.dist-info → ariel_tcu-0.18.0.dist-info}/entry_points.txt +3 -0
- egse/ariel/tcu/__init__.py +12 -7
- egse/ariel/tcu/tcu.py +108 -16
- egse/ariel/tcu/tcu_cmd_utils.py +65 -8
- egse/ariel/tcu/tcu_cs.py +62 -32
- egse/ariel/tcu/tcu_devif.py +27 -0
- egse/ariel/tcu/tcu_protocol.py +2 -2
- egse/ariel/tcu/tcu_ui.py +693 -0
- ariel_tcu-0.17.3.dist-info/METADATA +0 -14
- ariel_tcu-0.17.3.dist-info/RECORD +0 -15
- {ariel_tcu-0.17.3.dist-info → ariel_tcu-0.18.0.dist-info}/WHEEL +0 -0
ariel_tcu/settings.yaml
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ariel-tcu
|
|
3
|
+
Version: 0.18.0
|
|
4
|
+
Summary: Telescope Control Unit (TCU) for Ariel
|
|
5
|
+
Author: IVS KU Leuven
|
|
6
|
+
Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Keywords: Ariel,hardware testing,software framework,telescope control
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: cgse-common
|
|
11
|
+
Requires-Dist: cgse-core
|
|
12
|
+
Requires-Dist: cgse-gui
|
|
13
|
+
Requires-Dist: crcmod>=1.7
|
|
14
|
+
Requires-Dist: pyserial>=3.5
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# Telescope Control Unit (TCU)
|
|
18
|
+
|
|
19
|
+
## Reference Document
|
|
20
|
+
|
|
21
|
+
- RD01: TCU User Manual (ARIEL-IEEC-PL-TN-002), v1.2
|
|
22
|
+
- RD02: ARIEL TCU Data Handling (ARIEL-IEEC-PL-TN-007), v1.0
|
|
23
|
+
- RD03: TCU code provided by Vladimiro Noce (priv. comm.)
|
|
24
|
+
- RD04: ARIEL Telescope Control Unit Design Description Document (ARIEL-IEEC-PL-DD-001), v1.10
|
|
25
|
+
- RD05: ARIEL TCU FW Architecture Design (ARIEL-IEEC-PL-DD-002), v1.5
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Boards
|
|
29
|
+
|
|
30
|
+
- Control & Thermal Sensing (CTS) -> thermal monitoring
|
|
31
|
+
- Power Supply Unit (PSU)
|
|
32
|
+
- M2MD -> drives M2M
|
|
33
|
+
|
|
34
|
+
## Modes
|
|
35
|
+
|
|
36
|
+
- OFF
|
|
37
|
+
- I/F SELECT
|
|
38
|
+
- IDLE (0x0000): internal HK active
|
|
39
|
+
- BASE (0x0001): internal HK + temperature measurements active
|
|
40
|
+
- CALIBRATION (0x0003): internal HK + temperature measurements active + M2MD
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
ariel_tcu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
ariel_tcu/cgse_explore.py,sha256=vyplUdKvizZeuaChU-Y-sje1Pwz72gFH_fUptp_-8Iw,283
|
|
3
|
+
ariel_tcu/cgse_services.py,sha256=c04Xd75QyZ_rfRnAZgPq-HChjAg7HJJISEcHOWCeycI,1543
|
|
4
|
+
ariel_tcu/settings.yaml,sha256=ETqVGkyriTjrSKy0MfWDt5iQEAOM5Znr_jhgY4bwgz4,1164
|
|
5
|
+
egse/ariel/tcu/__init__.py,sha256=rR3lRFxeNFr_mqHBJ-QLG1nR-BIpJ-7ByjkNVZNWF8A,3640
|
|
6
|
+
egse/ariel/tcu/tcu.py,sha256=dzMdV2If1fkBC6_1fMfN1VrDFQ6XZagSaxpDoqNry4k,36963
|
|
7
|
+
egse/ariel/tcu/tcu.yaml,sha256=hzhsa6XkWB0fX8R-2eryxcfBtP3r2spLFv6cu_tY-V4,1287
|
|
8
|
+
egse/ariel/tcu/tcu_cmd_utils.py,sha256=QQyYgPPBkMYiEwi_18O6U8eutSAqkHFfuVEs4qsovPw,47544
|
|
9
|
+
egse/ariel/tcu/tcu_cs.py,sha256=QLLsgUnEFrJv2wUjB1IVjrjkKHEBekEZSCCzCOoJZ-g,8783
|
|
10
|
+
egse/ariel/tcu/tcu_devif.py,sha256=ae5YzbCYMIuAyKRi5vQZuAGE0HyMmSIazmOc8vtPq0E,3872
|
|
11
|
+
egse/ariel/tcu/tcu_protocol.py,sha256=KCXvu0aWMk1853l7tKE8fyyWssAnWcdmFDOnymyzYhQ,5394
|
|
12
|
+
egse/ariel/tcu/tcu_ui.py,sha256=P7Lm5pnoWRugQk8FjhVHiwX2I9IrvfTcahY2kSDBlUE,23937
|
|
13
|
+
ariel_tcu-0.18.0.dist-info/METADATA,sha256=_Z2cbD7T0Qs7U30jd-D73OAw8HUwusENSYdHLbGBs4w,1222
|
|
14
|
+
ariel_tcu-0.18.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
15
|
+
ariel_tcu-0.18.0.dist-info/entry_points.txt,sha256=nQkwDHpzGOkD1G-2cZ5GfJec0v0hdtiTfDf7PGNkXRs,334
|
|
16
|
+
ariel_tcu-0.18.0.dist-info/RECORD,,
|
egse/ariel/tcu/__init__.py
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Reference documents:
|
|
4
4
|
- RD01: TCU User Manual (ARIEL-IEEC-PL-TN-002), v1.2
|
|
5
5
|
- RD02: ARIEL TCU Data Handling (ARIEL-IEEC-PL-TN-007), v1.0
|
|
6
|
-
-
|
|
6
|
+
- RD03: TCU code provided by Vladimiro Noce (priv. comm.)
|
|
7
|
+
- RD04: ARIEL Telescope Control Unit Design Description Document (ARIEL-IEEC-PL-DD-001), v1.10
|
|
8
|
+
- RD05: ARIEL TCU FW Architecture Design(ARIEL-IEEC-PL-DD-002), v1.5
|
|
7
9
|
"""
|
|
8
10
|
|
|
9
11
|
from enum import IntEnum
|
|
@@ -27,13 +29,12 @@ SERVICE_PORT = settings.get("SERVICE_PORT", 0) # Service port (as per settings
|
|
|
27
29
|
MONITORING_PORT = settings.get("MONITORING_PORT", 0) # Monitoring port (as per settings or dynamically assigned)
|
|
28
30
|
STORAGE_MNEMONIC = settings.get("STORAGE_MNEMONIC", "TCU") # Storage mnemonic (used in the HK filenames)
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
NUM_M2MD_POSITIONS = 18
|
|
32
|
+
NUM_TSM_FRAMES = settings.get("NUM_TSM_FRAMES", 2)
|
|
33
|
+
NUM_TSM_PROBES_PER_FRAME = settings.get("NUM_TSM_PROBES_PER_FRAME", 22)
|
|
34
|
+
NUM_M2MD_POSITIONS = settings.get("NUM_M2MD_POSITIONS", 18)
|
|
35
|
+
NUM_M2MD_AXES = settings.get("NUM_M2MD_AXES", 3)
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
PROXY_TIMEOUT = 10
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
class TcuMode(IntEnum):
|
|
@@ -67,6 +68,10 @@ class MotorState(IntEnum):
|
|
|
67
68
|
OPERATION = 0x0010 # Motor moving
|
|
68
69
|
|
|
69
70
|
|
|
71
|
+
# Axis velocity settings
|
|
72
|
+
# - Keys: Axis speed in Hz
|
|
73
|
+
# - Values: Hex string representing the axis speed
|
|
74
|
+
# -> This has to be used as cargo2 in the hex command that is sent to the Arduino
|
|
70
75
|
AXIS_VELOCITY = {
|
|
71
76
|
1: 0x5DC0, # Writing @ 1Hz
|
|
72
77
|
2: 0x2EE0, # Writing @ 2Hz
|