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

Spacecraft allows conversion for singular conic section.

    Details

      Description

      See GMT-1770 attachment for procedures to duplicate this bug. See table 1.14 on pg 8.

      Here is the fix, which I have updated in the math spec.

      In CoordUtil.cpp, change lines 294 through 299 to

      if (Abs(1 - e) < 1E-7)

      { throw UtilityException ("CoordUtil::CartesianToKeplerian() " "Warning: A nearly parabolic orbit was encountered while converting from the Cartesian state to the Keplerian elements. The Keplerian elements are undefined for a parabolic orbit.\n"); }

      at line 303, add the following

      if (Abs(a*(1 - e) < .001)

      { throw UtilityException ("CoordUtil::CartesianToKeplerian() " "Warning: A nearly singular conic section was encountered while converting from the Cartesian state to the Keplerian elements. The radius of periapsis must be greater than 1 meter.\n"); }

        Gliffy Diagrams

          Attachments

            Activity

            No work has yet been logged on this issue.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: