Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTDome re-Home Tickets/sitcom 1438 #131

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
.. |author| replace:: *David Sanmartim*
.. If there are no contributors, write "none" between the asterisks. Do not remove the substitution.
.. |contributors| replace:: *Paulina Venegas*


.. _rancher: https://rancher.cp.lsst.org/



.. _MTMTPtg-Configuration-for-MTRotator-and-MTMount:

#############################################
MTPtg Configuration for MTRotator and MTMount
#############################################


.. note:: Important Information before start.

#. Only proceed if you are authorized to change the configuration of the CSC pointing component ``MTPtg`` of the Simonyi Telescope.

#. A change of the ``MTMount`` CSC version needs to be done in *ArgoCD by a commissioning scientist*.

#. Remember use VPN.

..

.. note:: Important Information before start.

Kubernetes authorization

1. To access the Kubernetes Cluster, you must have the necessary credentials installed on your computer.

*Credentials*: Open a ticket directed to summit IT to access the Kubernetes Cluster, named **yagan**, through the rancher_.

2. Once it is done, you can download your unique credential and place the :file:`yagan.yaml` file inside the :file:`~/.kube` directory in your local machine.

..

.. _MTMTPtg-Configuration-for-MTRotator-and-MTMount-Procedure-Overview:
Overview
========

When either the ``MTRotator`` or ``MTMount`` components become unavailable during Simonyi operations, and you still want to continue testing and tracking,
it's necessary to change the configuration of the ``MTPtg`` CSC to avoid entering into ``FAULT`` mode commanding these unavailable components.


.. _MTMTPtg-Configuration-for-MTRotator-and-MTMount-Procedure-Error-Diagnosis:
Error Diagnosis
===============

Cases
-----

1. ``MTRotator`` is not available, but you still want to track **without** the Rotator using the rest of the components; or you want to **include**
the Rotator in the tracking again.

2. ``MTMount`` is not available (not starting up, for example), but you still want to use *CCW* + *Rotator* **without** moving or commanding the mount,
or you want to revert the change and **include** the mount.


.. _MTMTPtg-Configuration-for-MTRotator-and-MTMount-Procedure-Procedure-Steps:
Procedure Steps
===============

.. warning::

Announce through the Slack channel *#summit-simonyi* that the component is not available, and you are about to change the configuration.

The Commissioning Scientists on shift will change the version of ``MTMount`` CSC in *ArgoCD*; this can deal with tracking without said component.

The Commissioning Scientists may request to send the ``MTMount`` to **OFFLINE**. this will change the ``MTMount`` CSC version to **mtmount-ccw-only**.
..



Steps
-----

1. Issue the :file:`set_summary_state.py` script in LOVE to change the status of ``MTPtg`` to ``STANDBY`` with the following configuration

.. code-block::
:caption: set_summary_state.py

data:
-
- MTPtg
- STANDBY
..


2. Find the name of the **pod** where the ``MTPtg`` is running.

From your terminal, run the following command which list all the **pods** related to the *<namespace>* maintel:

.. prompt:: bash

kubectl --kubeconfig=${HOME}/.kube/yagan.yaml get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName -n maintel

..

.. figure:: ./_static/1.png
:width: 950px
:height: 165px
:name: Your figure

In this particular case the name of the ``MTPtg`` **pod** is **mtptg-djhpv**.
..

3. Connect to the ``MTPtg`` **pod mtptg-djhjv** within the *<namespace>* maintel.

The command will open a terminal within the pod.

.. prompt:: bash

kubectl --kubeconfig=${HOME}/.kube/yagan.yaml exec --stdin --tty mtptg-djhpv -n maintel -- /bin/bash

..

.. figure:: ./_static/2.png
:width: 900px
:height: 65px

..

4. **Move to configuration directory,** the configuration files are one level up. The directory contains the configuration files :file:`MTPtg.info` (:file:`ATPtg.info` for AuxTel) and the pointing models :file:`mt.mod` files (:file:`at.mod` for AuxTel).

At startup, the pointing component loads by default the pointing model :file:`mt.mod` file and the :file:`MTPtg.info` (equivalent for AuxTel).

.. prompt:: bash

[saluser@podname] cd /home/saluser/repos/ts_pointing_common/install/data

..

.. figure:: ./_static/3.png
:width: 900px
:height: 420px

..

5. To edit the :file:`MTPtg.info` file use a text editor such as *vi*.

5.1. ``MTRotator``: The **disable_rotator** line of the :file:`MTPtg.info` file contains the parameter you need to change. It reflects whether the ``MTRotator`` is monitored in the tracking.

* The parameter *set* is **1**, means that it's being ignored and will not be commanded by the ``MTPtg`` component.

.. code-block::
:caption: MTPtg.info: disable_rotator: 1

- Set 0 → enabled
- Set 1 → disabled
..


5.2. ``MTMount``: The line containing the **disable_mount** parameter in the :file:`MTPtg.info` file is the one to edit. It shows whether the ``MTMount`` is monitored in the tracking.

* The parameter *set* is *0*, which means that it's being included and commanded by the ``MTPtg`` component.

.. code-block::
:caption: MTPtg.info: disable_mount: 0

- Set 0 → enabled
- Set 1 → disabled
..


6. **Exit** the **pod** by typing :command:`exit`.

7. From LOVE, **send** the ``MTPtg`` back to ``ENABLED`` using the script :file:`set_summary_state.py` and configuration below. ``MTMount`` must be ``ENABLED``, even if not tracking, so ``CCW`` can be still monitored.

.. code-block::
:caption: set_summary_state.py

data:
-
- MTPtg
- ENABLED
..

.. _MTRotator-or-MTMount-Configuration-Procedure-Post-Condition:

Post-Condition
==============

1. The tracking tests are able to run with a missing component, either ``MTMount`` or ``MTRotator``, if the respective parameter was set to **1**.

2. The tracking tests include the ``MTMount`` or ``MTRotator`` back if the parameter was set to **0**.


.. _MTRotator-or-MTMount-Configuration-Procedure-Contingency:

Contingency
===========
* If the procedure is not successful, report the issue in *#summit-simonyi*, inform the commissioning scientist on duty, and/or activate the xxxxxxOut of Hours Support_.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Simonyi/Non-Standard-Operations/MTCS/MTPtg/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. MTCS-Non-standard-Operations-TMA-Non-Standard-Procedures:

############################
MTPtg
############################

.. toctree::
:maxdepth: 2
:titlesonly:
:glob:
2 changes: 0 additions & 2 deletions Simonyi/Non-Standard-Operations/MTCS/TMA/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ TMA
:maxdepth: 2
:titlesonly:
:glob:

*
7 changes: 7 additions & 0 deletions Simonyi/Non-Standard-Operations/MTCS/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ MTCS
TMA/index.rst


.. toctree::
:maxdepth: 2
:titlesonly:
:glob:

MTPtg/index.rst


.. toctree::
:maxdepth: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.. This is the label that can be used as for cross referencing this procedure.
.. Recommended format is "Directory Name"-"Title Name" -- Spaces should be replaced by hyphens.
.. _MTDome-Troubleshooting-MTDome-Recover-and-clear-Faults:
.. _Troubleshooting-MTCS-MTDome-Recover-and-clear-Faults:
.. Each section should includes a label for cross referencing to a given area.
.. Recommended format for all labels is "Title Name"-"Section Name" -- Spaces should be replaced by hyphens.
.. To reference a label that isn't associated with an reST object such as a title or figure, you must include the link an explicit title using the syntax :ref:`link text <label-name>`.
Expand Down
93 changes: 93 additions & 0 deletions Simonyi/Troubleshooting/MTCS/MTDome/MTDome-to-Home.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.. |author| replace:: *Tiago Ribeiro*
.. If there are no contributors, write "none" between the asterisks. Do not remove the substitution.
.. |contributors| replace:: *Paulina Venegas*

.. _Cam-04: https://unifi.ui.com/consoles/D021F9521E8800000000063CF3E6000000000686EFB60000000061C81AC6:201406364/protect/dashboard/all

.. _Troubleshooting-MTCS-MTDome-MTDome-re-Home:

##############
MTDome re-Home
##############

.. _MTDome-MTDome-re-Home-Overview:

Overview
========
The dome needs re-homing if the reference azimuth position is lost, and the encoders are not reading the real position of the dome azimuth (as seen in the camera).
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

.. note::
This is a temporary situation which will be resolved once EIE updates the azimuth rotation control software. A bar code will be installed by EIE which will provide absolute positioning for the ``MTDome``.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

This process already has started but will take a few more months.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

Once the upgrade is completed, this procedure can be deprecated.
..


.. _MTDome-MTDome-re-Home-Procedure-Error-Diagnosis:

Error Diagnosis
===============

* While the dome is not positioned where it should be, the images might be vignetted by the dome. In more extreme cases, no images show at all if the cameras are completely covered by the dome.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved
* The azimuth position reported by the dome is not the same as the one seen in the camera.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved


.. _MTDome-MTDome-re-Home-Procedure-Procedure-Steps:

Procedure Steps
===============

1. Move the dome to the azimuth of 328 deg, the position can be verified through the camera systems UniFi at `Cam-04`_ (via VPN). This is the *zero position* **or** *park* position for the dome.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

2. Note that the readings reported by the dome in LOVE or Chronograf will show different numbers, so you need to calculate the value that the unaligned encoders would read at the park position of 328 degrees and send the dome to that angle.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

* For example, you notice the dome is reporting 10 degree in azimuth, but the camera marks 25.2 degrees (the encoder is 15.2 degrees behind).

To send the dome to home at 328 degrees, you need to command the dome to move to *(328 - 15.2) = 312.8* degrees.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

.. code-block::
:caption: run_command.py

component: MTDome
cmd: moveAz
parameters:
position: 312.8
..

3. Once the dome is in the *zero position*, you need to stop the dome and engage the breaks.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

.. code-block::
:caption: run_command.py

component: MTDome
cmd: stop
parameters:
engageBrakes: true
subSystemIds: 1
..


4. Set the dome *zero azimuth* position by running :file:`run_command.py` script with the following configuration:
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

.. code-block::
:caption: run_command.py

component: MTDome
cmd: setZeroAz
..


.. _MTDome-MTDome-re-Home-Post-Condition:

Post-Condition
==============
* MTDome encoder is showing the right value and operations can continue.
PaulinaLSST marked this conversation as resolved.
Show resolved Hide resolved

.. _MTDome-MTDome-re-Home-Contingency:

Contingency
===========
* If the above procedure was not successful, report the issue in *#summit-simonyi*, *#simonyi-operations* and *#rubinobs-mtdome* channels.

Loading