Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-5839

Spacecraft navigation field validation issues

    Details

      Description

      The Spacecraft.AddHardware method permits the following syntax:

      Spacecraft.AddHardware = var*var;
      

      The validation script for the Spacecraft.SolveFors method produces confusing output:

      The object named "" of type "CoordinateSystemFixed" has no parameter defined with "var*var" in line:
         "  15: s.SolveFors = var*var;"
      
      Setting "s.SolveFors" to "str" is not allowed before BeginMissionSequence in line:
         "  18: s.SolveFors = str;"
      
      Setting "s.SolveFors" to "arr(2,1)/var" is not allowed before BeginMissionSequence in line:
         "  21: s.SolveFors = arr(2,1)/var;"
      
      The object named "" of type "CoordinateSystemFixed" has no parameter defined with "var*var" in line:
         "  24: s.SolveFors = myObject.X;"
      
      The object named "" of type "CoordinateSystemFixed" has no parameter defined with "var*var" in line:
         "  27: s.SolveFors = -1;"
      
      The object named "" of type "CoordinateSystemFixed" has no parameter defined with "var*var" in line:
         "  30: s.SolveFors = 0;"
      

      GMAT complains about "var*var" in lines 24, 27, and 30, but those lines do not contain that syntax.

      See attached scripts.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: