-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #868 from lsst-ts/tickets/DM-43456
Initial addition of reflector
- Loading branch information
Showing
8 changed files
with
94 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Adding MTReflector xml which allows opening and closing the flatfield reflector |
14 changes: 14 additions & 0 deletions
14
python/lsst/ts/xml/data/sal_interfaces/MTReflector/MTReflector_Commands.xml
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="http://lsst-sal.tuc.noao.edu/schema/SALCommandSet.xsl"?> | ||
<SALCommandSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://lsst-sal.tuc.noao.edu/schema/SALCommandSet.xsd"> | ||
<SALCommand> | ||
<Subsystem>MTReflector</Subsystem> | ||
<EFDB_Topic>MTReflector_command_open</EFDB_Topic> | ||
<Description>Open reflector</Description> | ||
</SALCommand> | ||
<SALCommand> | ||
<Subsystem>MTReflector</Subsystem> | ||
<EFDB_Topic>MTReflector_command_close</EFDB_Topic> | ||
<Description>Close reflector</Description> | ||
</SALCommand> | ||
</SALCommandSet> |
24 changes: 24 additions & 0 deletions
24
python/lsst/ts/xml/data/sal_interfaces/MTReflector/MTReflector_Events.xml
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="http://lsst-sal.tuc.noao.edu/schema/SALEventSet.xsl"?> | ||
<SALEventSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://lsst-sal.tuc.noao.edu/schema/SALEventSet.xsd"> | ||
<Enumeration> | ||
MTReflectorStatus_Connected=0, | ||
MTReflectorStatus_Disconnected=1, | ||
MTReflectorStatus_Open=2, | ||
MTReflectorStatus_Close=3, | ||
MTReflectorStatus_Unknown=4, | ||
MTReflectorStatus_Connection_Error=5 | ||
</Enumeration> | ||
<SALEvent> | ||
<Subsystem>MTReflector</Subsystem> | ||
<EFDB_Topic>MTReflector_logevent_reflectorStatus</EFDB_Topic> | ||
<Description>MTReflector state change</Description> | ||
<item> | ||
<EFDB_Name>reflectorStatus</EFDB_Name> | ||
<Description>MTReflector state; a ReflectorStatus enum.</Description> | ||
<IDL_Type>int</IDL_Type> | ||
<Units>unitless</Units> | ||
<Count>1</Count> | ||
</item> | ||
</SALEvent> | ||
</SALEventSet> |
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,30 @@ | ||
__all__ = ["MTReflectorStatus"] | ||
import enum | ||
|
||
|
||
class MTReflectorStatus(enum.IntEnum): | ||
"""An enumeration class for handling the MTReflectorStatus's substates. | ||
These enumerations listed here correspond to the ones found in the | ||
detailedState enum located in ts_xml under the MTReflectorStatus | ||
folder within the MTReflectorStatus_Events.xml. | ||
Attributes | ||
---------- | ||
CONNECTED: `int` | ||
Corresponds to the state when labjack controller is connected | ||
DISCONNECTED: `int` | ||
Corresponds to the state when labjack controller is disconnected | ||
UNKNOWN : `int` | ||
Corresponds to the state when labjack controller state is not known | ||
CONNECTION_ERROR : `int` | ||
Corresponds to the state when labjack controller has errored | ||
""" | ||
|
||
CONNECTED = 0 | ||
DISCONNECTED = 1 | ||
OPEN = 2 | ||
CLOSE = 3 | ||
UNKNOWN = 4 | ||
CONNECTION_ERROR = 5 |
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ | |
MTHexapod, | ||
MTMount, | ||
MTPtg, | ||
MTReflector, | ||
MTRotator, | ||
Scheduler, | ||
Script, | ||
|
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 |
---|---|---|
|
@@ -86,6 +86,7 @@ | |
"MTVMS", | ||
"OCPS", | ||
"PMD", | ||
"MTReflector", | ||
"Scheduler", | ||
"Script", | ||
"ScriptQueue", | ||
|
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