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

Can't Vary Finite Burn Direction in Targeter

    Details

      Description

      assuming engine 1 is a thruster, this statement fails

      Vary DC1(engine1.Element1 = 0.4,

      {Perturbation = 0.0001});

      throwing this exception:

      1: **** ERROR **** GmatBase Exception Thrown: Parameter type: Element1 should be property of ImpulsiveBurn in line:
      " 280: Vary DC1(engine1.Element1 = 0.4, {Perturbation = 0.0001}

      );"

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            shughes Steven Hughes added a comment -

            Here is a workaround, but for something this basic, we should not have to do this.

            Vary DC1(thrustElement1 = 0.4,

            {Perturbation = 0.0001});
            Vary DC1(thrustElement2 = 0.4, {Perturbation = 0.0001}

            );
            engine1.Element1 = thrustElement1;
            engine1.Element2 = thrustElement2;

            Show
            shughes Steven Hughes added a comment - Here is a workaround, but for something this basic, we should not have to do this. Vary DC1(thrustElement1 = 0.4, {Perturbation = 0.0001}); Vary DC1(thrustElement2 = 0.4, {Perturbation = 0.0001} ); engine1.Element1 = thrustElement1; engine1.Element2 = thrustElement2;
            Hide
            shughes Steven Hughes added a comment -

            CCB: P1 R2013a

            Show
            shughes Steven Hughes added a comment - CCB: P1 R2013a
            Hide
            shughes Steven Hughes added a comment -

            Linda, after talking with you on Thursday I tried changing the syntax but still see the issue so this is a bug. Whether you very Element1 or ThrustDirection1 an exception is thrown.

            I tried this:

            Vary DC1(engine1.ThrustDirection1 = 0.4,

            {Perturbation = 0.0001});
            Vary DC1(engine1.ThrustDirection2 = 0.4, {Perturbation = 0.0001}

            );

            and get this message:

            1: **** ERROR **** GmatBase Exception Thrown: Parameter type: ThrustDirection1 should be property of Spacecraft in line:
            " 281: Vary DC1(engine1.ThrustDirection1 = 0.4,

            {Perturbation = 0.0001});"

            2: **** ERROR **** GmatBase Exception Thrown: Parameter type: ThrustDirection2 should be property of Spacecraft in line:
            " 282: Vary DC1(engine1.ThrustDirection2 = 0.4, {Perturbation = 0.0001}

            );"

            Show
            shughes Steven Hughes added a comment - Linda, after talking with you on Thursday I tried changing the syntax but still see the issue so this is a bug. Whether you very Element1 or ThrustDirection1 an exception is thrown. I tried this: Vary DC1(engine1.ThrustDirection1 = 0.4, {Perturbation = 0.0001}); Vary DC1(engine1.ThrustDirection2 = 0.4, {Perturbation = 0.0001} ); and get this message: 1: **** ERROR **** GmatBase Exception Thrown: Parameter type: ThrustDirection1 should be property of Spacecraft in line: " 281: Vary DC1(engine1.ThrustDirection1 = 0.4, {Perturbation = 0.0001});" 2: **** ERROR **** GmatBase Exception Thrown: Parameter type: ThrustDirection2 should be property of Spacecraft in line: " 282: Vary DC1(engine1.ThrustDirection2 = 0.4, {Perturbation = 0.0001} );"
            Hide
            gmatloj Linda Jun added a comment -

            Yes. ThrustDirection1/2/3 are Parameters of Thruster owned by Spacecraft. So when wrapper is created for Vary command, it creates Parameter wrapper.
            Do you want to say for example, Sat1.engine1.ThrustDirection1 instead?

            Question:
            Should ObjectProperty wrapper be created if ThrustDirection is used in a Vary command? ObjectProperty wrapper uses Thruster object and field name.

            Show
            gmatloj Linda Jun added a comment - Yes. ThrustDirection1/2/3 are Parameters of Thruster owned by Spacecraft. So when wrapper is created for Vary command, it creates Parameter wrapper. Do you want to say for example, Sat1.engine1.ThrustDirection1 instead? Question: Should ObjectProperty wrapper be created if ThrustDirection is used in a Vary command? ObjectProperty wrapper uses Thruster object and field name.
            Hide
            gmatloj Linda Jun added a comment -

            Steve,
            It seems like an user error. Can you resolve this?

            Show
            gmatloj Linda Jun added a comment - Steve, It seems like an user error. Can you resolve this?
            Hide
            dcooley Steve Cooley added a comment -

            Added documentation to the "Remarks" section of the Vary command feature spec.

            Show
            dcooley Steve Cooley added a comment - Added documentation to the "Remarks" section of the Vary command feature spec.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: