Aloha GMAT Team,
I am writing to ask if there's a way to use variables for orbit colors. I am
using MATLAB to process relative motion trajectories and I would like to use
the same colors in both GMAT, for mission design, and MATLAB for analysis and
postprocessing.
I have tried:
% initial orbit
GMAT c1(1) = 255;
GMAT c1(2) = 0;
GMAT c1(3) = 255;
Propagate 'Propagate to servicer initial peri' PropagatorADR(ADR)
{Servicer.Earth.Periapsis, OrbitColor = [c1(1) c1(2) c1(3)]};
and the interpreter gives
**** ERROR **** Command Exception: Utility Exception: Invalid Unsigned Integer
value "c1(1)" found in "[c1(1) c1(2) c1(3)]" in line:
>From the GMAT documentation I know that GMAT does not support integers, so the
>error almost makes sense. I have tried
GMAT str1 = 'Fuchsia';
Propagate 'Propagate to servicer initial peri' PropagatorADR(ADR)
{Servicer.Earth.Periapsis, OrbitColor = str1};
and the interpreter gives
*** ERROR **** Command Exception: Utility Exception: The color "str1" not found
in the color database. Available colors are "Aqua AquaMarine ...
Is there a way to work around these limitations?
Thank you and best regards,
Bogdan
_______________________________________________
GMAT-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmat-users