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

Debug the SVD Decomposition in M2 cRIO when Calculating RZ

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_main_telescope
    • Labels:
    • Story Points:
      2
    • Sprint:
      TSSW Sprint - Apr 24 - May 08, TSSW Sprint - May 08 - May 22
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      Debug the SVD decomposition in M2 cRIO when calculating RZ. I think the problem comes from the "uniqueness" of SVD.

        Attachments

        1. linux.png
          linux.png
          151 kB
        2. svd_rot.pdf
          178 kB
        3. SVD.nb
          16 kB
        4. windows.png
          windows.png
          233 kB

          Issue Links

            Activity

            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            Based on Singular_value_decomposition:

            Non-degenerate singular values always have unique left- and right-singular vectors, up to multiplication by a unit-phase factor eiφ (for the real case up to a sign). Consequently, if all singular values of a square matrix M are non-degenerate and non-zero, then its singular value decomposition is unique, up to multiplication of a column of U by a unit-phase factor and simultaneous multiplication of the corresponding column of V by the same unit-phase factor. In general, the SVD is unique up to arbitrary unitary transformations applied uniformly to the column vectors of both U and V spanning the subspaces of each singular value, and up to arbitrary unitary transformations on vectors of U and V spanning the kernel and cokernel, respectively, of M.

            Show
            ttsai Te-Wei Tsai added a comment - - edited Based on Singular_value_decomposition : Non-degenerate singular values always have unique left- and right-singular vectors, up to multiplication by a unit-phase factor eiφ (for the real case up to a sign). Consequently, if all singular values of a square matrix M are non-degenerate and non-zero, then its singular value decomposition is unique, up to multiplication of a column of U by a unit-phase factor and simultaneous multiplication of the corresponding column of V by the same unit-phase factor. In general, the SVD is unique up to arbitrary unitary transformations applied uniformly to the column vectors of both U and V spanning the subspaces of each singular value, and up to arbitrary unitary transformations on vectors of U and V spanning the kernel and cokernel, respectively, of M.
            Hide
            ttsai Te-Wei Tsai added a comment -

            The U and V are not the same between the host and cRIO under the same inputs:

            Show
            ttsai Te-Wei Tsai added a comment - The U and V are not the same between the host and cRIO under the same inputs:
            Hide
            ttsai Te-Wei Tsai added a comment -

            Analyze the solutions in SVD.nb.

            Show
            ttsai Te-Wei Tsai added a comment - Analyze the solutions in SVD.nb .
            Hide
            ttsai Te-Wei Tsai added a comment -

            Useful reference: svd_rot.pdf

            Show
            ttsai Te-Wei Tsai added a comment - Useful reference:  svd_rot.pdf
            Hide
            ttsai Te-Wei Tsai added a comment -

            In the tests, I got the following error codes: 6088, 6060, 6053.

            Show
            ttsai Te-Wei Tsai added a comment - In the tests, I got the following error codes: 6088, 6060, 6053.
            Hide
            ttsai Te-Wei Tsai added a comment -

            Please help to review the PRs:
            1. https://github.com/lsst-ts/ts_mtm2_cell/pull/30
            2. https://github.com/lsst-ts/ts_m2com/pull/33
            3. https://github.com/lsst-ts/ts_m2gui/pull/40

            The main issue in these PRs is to fix the rz calculation. The update in LabVIEW is the same as the calculation in mock_control_closed_loop.py in ts_m2com

            Thanks!

            Show
            ttsai Te-Wei Tsai added a comment - Please help to review the PRs: 1. https://github.com/lsst-ts/ts_mtm2_cell/pull/30 2. https://github.com/lsst-ts/ts_m2com/pull/33 3. https://github.com/lsst-ts/ts_m2gui/pull/40 The main issue in these PRs is to fix the rz calculation. The update in LabVIEW is the same as the calculation in mock_control_closed_loop.py in ts_m2com Thanks!
            Hide
            ttsai Te-Wei Tsai added a comment -

            Thanks Tiago's and Patricio's reviews in GitHub.

            Show
            ttsai Te-Wei Tsai added a comment - Thanks Tiago's and Patricio's reviews in GitHub.

              People

              Assignee:
              ttsai Te-Wei Tsai
              Reporter:
              ttsai Te-Wei Tsai
              Reviewers:
              Patricio Cortes, Tiago Ribeiro
              Watchers:
              Te-Wei Tsai, Tiago Ribeiro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.