Default Format for Axis of ObjectRefereced Axis

Development related to the GMAT core and GUI

Default Format for Axis of ObjectRefereced Axis

Postby space_egd » Tue Sep 08, 2009 10:20 pm

Does anyone object to the *.*Axis syntax from the GUI automatically wrapping the -R R -V V N -N values in single quotes?
(i.e. SC.XAxis = '-R') The quotes are needed inside of a function.

In testing GMAT I've discovered that in the 9/8/2009 development build the followed syntax would throw an error when used inside of a function:
Code: Select all
Create CoordinateSystem ScLVLH;
ScLVLH.Axes = ObjectReferenced;
ScLVLH.Origin = Sc;
ScLVLH.Primary = Earth;
ScLVLH.Secondary = Sc;
ScLVLH.ZAxis = R;
ScLVLH.YAxis = -N;


The above code throws the following error when inside of a function:
Code: Select all
**** ERROR **** Function Exception Thrown: Cannot continue due to Command Exception: Undefined variable(s) ", N" used in
   "GMAT ScLVLH.YAxis = -N"


Instead, I had to use the following code with single quotes around the *Axis value to not throw an error inside of a function:
Code: Select all
Create CoordinateSystem ScLVLH;
ScLVLH.Axes = ObjectReferenced;
ScLVLH.Origin = Sc;
ScLVLH.Primary = Earth;
ScLVLH.Secondary = Sc;
ScLVLH.ZAxis = 'R';
ScLVLH.YAxis = '-N';
space_egd
 
Posts: 357
Joined: Sun Jun 08, 2008 9:02 pm
Location: MD

Re: Default Format for Axis of ObjectRefereced Axis

Postby gmatloj » Tue Sep 22, 2009 2:21 pm

I have no objection. I prefer having single quotes around those *Axis values.
Do we write out only non-blank values on show script or save script to file?
gmatloj
 
Posts: 97
Joined: Mon Jun 09, 2008 2:50 pm

Re: Default Format for Axis of ObjectRefereced Axis

Postby space_egd » Tue Sep 22, 2009 4:00 pm

We should only write out non-blank values on show script and save script.
space_egd
 
Posts: 357
Joined: Sun Jun 08, 2008 9:02 pm
Location: MD


Return to Core Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron