Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-37262

Support the Functions of State Transition in M2 Python Controller

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_main_telescope
    • Labels:
    • Story Points:
      2
    • Sprint:
      TSSW Sprint - Dec 05 - Dec 19, TSSW Sprint - Dec 19 - Jan 02
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      Support the functions of state transition in M2 Python controller (ts_m2com). This will issue the power/CLC/ILC related commands directly to the cell controller (ts_mtm2_cell). The target is to get ride of two state machines exist in the M2 server LabVIEW project (ts_mtm2). The M2 Python GUI (ts_m2gui) can use these new functions directly. For the M2 Python CSC (ts_m2), it may need to wait until I finished the update of M2 cell LabVIEW project (ts_mtm2_cell).

        Attachments

          Issue Links

            Activity

            No builds found.
            ttsai Te-Wei Tsai created issue -
            ttsai Te-Wei Tsai made changes -
            Field Original Value New Value
            Link This issue is triggered by DM-37125 [ DM-37125 ]
            ttsai Te-Wei Tsai made changes -
            Summary Support the State Transition in M2 Python Controller Support the Functions of State Transition in M2 Python Controller
            ttsai Te-Wei Tsai made changes -
            Description Support the functions of state transition in M2 Python controller (*ts_m2com*). This will issue the power/CLC/ILC related commands directly to the cell controller (*ts_mtm2_cell*). The target is to get ride of two state machines exist in the *ts_mtm2*. The M2 Python GUI (*ts_m2gui*) can use these new functions directly. For the M2 Python CSC (*ts_m2*), it may need to wait the update until I finished the update of M2 cell LabVIEW project (*ts_mtm2_cell*). Support the functions of state transition in M2 Python controller (*ts_m2com*). This will issue the power/CLC/ILC related commands directly to the cell controller (*ts_mtm2_cell*). The target is to get ride of two state machines exist in the M2 server LabVIEW project (*ts_mtm2*). The M2 Python GUI (*ts_m2gui*) can use these new functions directly. For the M2 Python CSC (*ts_m2*), it may need to wait the update until I finished the update of M2 cell LabVIEW project (*ts_mtm2_cell*).
            ttsai Te-Wei Tsai made changes -
            Description Support the functions of state transition in M2 Python controller (*ts_m2com*). This will issue the power/CLC/ILC related commands directly to the cell controller (*ts_mtm2_cell*). The target is to get ride of two state machines exist in the M2 server LabVIEW project (*ts_mtm2*). The M2 Python GUI (*ts_m2gui*) can use these new functions directly. For the M2 Python CSC (*ts_m2*), it may need to wait the update until I finished the update of M2 cell LabVIEW project (*ts_mtm2_cell*). Support the functions of state transition in M2 Python controller (*ts_m2com*). This will issue the power/CLC/ILC related commands directly to the cell controller (*ts_mtm2_cell*). The target is to get ride of two state machines exist in the M2 server LabVIEW project (*ts_mtm2*). The M2 Python GUI (*ts_m2gui*) can use these new functions directly. For the M2 Python CSC (*ts_m2*), it may need to wait until I finished the update of M2 cell LabVIEW project (*ts_mtm2_cell*).
            ttsai Te-Wei Tsai made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            ttsai Te-Wei Tsai made changes -
            Story Points 0
            ttsai Te-Wei Tsai made changes -
            Story Points 0 1
            ttsai Te-Wei Tsai made changes -
            Story Points 1 2
            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            <ts_mtm2>

            [SequenceStepError.vi]

            In the loca mode, when there is the fault, reset the force (when needed), reset the step (when needed), set the CLC mode to Idle.

            In the remote mode, turn off the motor power.

            [LocalErrorisTrue.vi]

            [ManualClosedLoopSubstate.lvclass]

            1. Stop motion.
            2. Unload the script.
            3. Reset the Steps.
            4. Reset the Forces.
            5. CLC mode to TelemetryOnly.
            6. Turn off the motor power.

            [ManualOpenLoopSubstate.lvclass]

            Same as the ManualClosedLoopSubstate.lvclass.

            Show
            ttsai Te-Wei Tsai added a comment - - edited <ts_mtm2> [SequenceStepError.vi] In the loca mode, when there is the fault, reset the force (when needed), reset the step (when needed), set the CLC mode to Idle. In the remote mode, turn off the motor power. [LocalErrorisTrue.vi] [ManualClosedLoopSubstate.lvclass] 1. Stop motion. 2. Unload the script. 3. Reset the Steps. 4. Reset the Forces. 5. CLC mode to TelemetryOnly. 6. Turn off the motor power. [ManualOpenLoopSubstate.lvclass] Same as the ManualClosedLoopSubstate.lvclass.
            Hide
            ttsai Te-Wei Tsai added a comment -
            Show
            ttsai Te-Wei Tsai added a comment - Please help to review the PRs: 1. https://github.com/lsst-ts/ts_m2com/pull/18 2. https://github.com/lsst-ts/ts_m2gui/pull/28 Thanks!
            ttsai Te-Wei Tsai made changes -
            Reviewers Petr Kubanek [ pkubanek ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            wvreeven Wouter van Reeven made changes -
            Sprint TSSW Sprint - Dec 05 - Dec 19 [ 1205 ] TSSW Sprint - Dec 05 - Dec 19, TSSW Sprint - Dec 19 - Jan 02 [ 1205, 1210 ]
            Hide
            ttsai Te-Wei Tsai added a comment -

            Thanks to review and approve the PRs!

            Show
            ttsai Te-Wei Tsai added a comment - Thanks to review and approve the PRs!
            ttsai Te-Wei Tsai made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            ttsai Te-Wei Tsai made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]

              People

              Assignee:
              ttsai Te-Wei Tsai
              Reporter:
              ttsai Te-Wei Tsai
              Reviewers:
              Petr Kubanek
              Watchers:
              Petr Kubanek, Te-Wei Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.