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

Put the Rotator into Standby State after the clearError Command

    XMLWordPrintable

    Details

      Description

      Put the rotator PXI into the standby state after clearing the error. This task will need to update the Simulink model for the state machine transition. This task also needs to write the related test in Simulink to testify this change. After this, I will need to generate the C/C++ code and put back to ts_rotator_controller and test the new built. I need to think I can test this in C/C++ level in additional to the Simulink level or not.

        Attachments

          Issue Links

            Activity

            No builds found.
            ttsai Te-Wei Tsai created issue -
            ttsai Te-Wei Tsai made changes -
            Field Original Value New Value
            Epic Link DM-23800 [ 431613 ]
            ttsai Te-Wei Tsai made changes -
            Summary Put the Rotator into Standby State after the clearError Put the Rotator into Standby State after the clearError Command
            ttsai Te-Wei Tsai made changes -
            Description Put the rotator PXI into the standby state after clear the error. Put the rotator PXI into the standby state after clearing the error.
            ttsai Te-Wei Tsai made changes -
            End date 10/Apr/20
            Sprint TSSW Sprint - Mar 30 - Apr 13 [ 1009 ]
            Start date 06/Apr/20
            Story Points 3
            Description Put the rotator PXI into the standby state after clearing the error. Put the rotator PXI into the standby state after clearing the error. This task will need to update the Simulink model for the state machine transition. This task also needs to write the related test in Simulink to testify this change. After this, I will need to generate the C/C++ code and put back to ts_rotator_controller and test the new built. I need to think I can test this in C/C++ level in additional to the Simulink level or not.
            ttsai Te-Wei Tsai made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            Updated the state machine in rotator Simulink model to transit to the Standby state from the Fault state after clearing the error. The transition of Fault state is by the state transition command. The result is in the figure:

            Show
            ttsai Te-Wei Tsai added a comment - - edited Updated the state machine in rotator Simulink model to transit to the Standby state from the Fault state after clearing the error. The transition of Fault state is by the state transition command. The result is in the figure:
            ttsai Te-Wei Tsai made changes -
            Attachment states.png [ 43422 ]
            ttsai Te-Wei Tsai made changes -
            Attachment faultStateByClearError.png [ 43440 ]
            ttsai Te-Wei Tsai made changes -
            Attachment faultStateByClearError.png [ 43440 ]
            ttsai Te-Wei Tsai made changes -
            Attachment faultStateByCheckError.png [ 43441 ]
            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            Entered the Fault state by errorCheck and left to Standby state by clearError:

            Show
            ttsai Te-Wei Tsai added a comment - - edited Entered the Fault state by errorCheck and left to Standby state by clearError:
            Hide
            ttsai Te-Wei Tsai added a comment -

            Updated the documents of ts_mt_hexRot_simulink repository.

            Show
            ttsai Te-Wei Tsai added a comment - Updated the documents of ts_mt_hexRot_simulink repository.
            Hide
            ttsai Te-Wei Tsai added a comment -

            Added the cpSimCntlr.sh and copied the files of simulink code to ts_rotator_controller. The Jenkins build passed.

            Show
            ttsai Te-Wei Tsai added a comment - Added the cpSimCntlr.sh and copied the files of simulink code to ts_rotator_controller. The Jenkins build passed.
            Hide
            ttsai Te-Wei Tsai added a comment -

            Put the system into the Standby state instead of Offline-PublishOnly state after clearing the error.

            The PRs are:

            1. https://github.com/lsst-ts/ts_mt_hexRot_simulink/pull/2

            2. https://github.com/lsst-ts/ts_rotator_controller/pull/4

            Please note the main effort in this ticket is the Simulink model, not the C code. The only part I think is relevant to code is here:
            https://github.com/lsst-ts/ts_rotator_controller/blob/tickets/DM-23848/src/smlnkModel/rotator_smlnk_Controller.c#L982-L986

            The Jenkins test is here:
            https://tssw-ci.lsst.org/job/LSST_Telescope-and-Site/job/ts_rotator_controller/job/tickets%252FDM-23848/

            Thanks!

            Show
            ttsai Te-Wei Tsai added a comment - Put the system into the Standby state instead of Offline-PublishOnly state after clearing the error. The PRs are: 1.  https://github.com/lsst-ts/ts_mt_hexRot_simulink/pull/2 2.  https://github.com/lsst-ts/ts_rotator_controller/pull/4 Please note the main effort in this ticket is the Simulink model, not the C code. The only part I think is relevant to code is here: https://github.com/lsst-ts/ts_rotator_controller/blob/tickets/DM-23848/src/smlnkModel/rotator_smlnk_Controller.c#L982-L986 The Jenkins test is here: https://tssw-ci.lsst.org/job/LSST_Telescope-and-Site/job/ts_rotator_controller/job/tickets%252FDM-23848/ Thanks!
            ttsai Te-Wei Tsai made changes -
            Reviewers Russell Owen [ rowen ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            Hide
            rowen Russell Owen added a comment -

            This looks very nice. A big improvement.

            I hope you plan to make the same change for the hexapod.

            Show
            rowen Russell Owen added a comment - This looks very nice. A big improvement. I hope you plan to make the same change for the hexapod.
            rowen Russell Owen made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            rowen Russell Owen made changes -
            Link This issue is triggering DM-24427 [ DM-24427 ]
            ttsai Te-Wei Tsai made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]
            ttsai Te-Wei Tsai made changes -
            Link This issue relates to DM-24798 [ DM-24798 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Start date:
                End date:

                  Jenkins

                  No builds found.