Hello, I am working with Gmat python API and need to set up contact locator events between a satellite and a ground segment. here is my code gaindesat = gmat.Construct("Spacecraft", "Gaindesat") gaindesat.SetField("DateFormat", "UTCGregorian") gaindesat.SetField("Epoch", "15 Jul 2024 21:00:00.000") gaindesat.SetField("CoordinateSystem", "EarthMJ2000Eq") gaindesat.SetField("DisplayStateType", "Keplerian") gaindesat.SetField("SMA", 7800) gaindesat.SetField("ECC", 0.00001) gaindesat.SetField("INC", 98.5) gaindesat.SetField("RAAN", 75) gaindesat.SetField("AOP", 90) gaindesat.SetField("TA", 85) gaindesat.SetField("DryMass", 0.998) gaindesat.SetField("Cd", 2.2) gaindesat.SetField("Cr", 1.5) gaindesat.SetField("DragArea", 0.015) gaindesat.SetField("SRPArea", 0.015)
grds = gmat.Construct("GroundStation", "ControlCenter") grds.SetField("StateType", "Spherical") grds.SetField("HorizonReference", "Ellipsoid") grds.SetField("Location1", 14.727500) grds.SetField("Location2", -1719258) grds.SetField("Location3", 0.008) grds.SetField("Id", "12F") accessevents = gmat.Construct("ContactLocator", "myContactLocator") accessevents.SetField("Target", gaindesat.GetName()) accessevents.SetField("Observers", grds.GetName()) #accessevents.SetField("OccultingBodies", "Earth, Moon") accessevents.SetField("InputEpochFormat", "UTCGregorian") accessevents.SetField("InitialEpoch", "15 Jul 2024 21:00:00.000") accessevents.SetField("FinalEpoch", "16 Jul 2024 21:00:00.000") accessevents.SetField("IntervalStepSize", 10) accessevents.help() show me target and observers are set but when i run gmat.Initialize i have this error as output error setting observers on ContactLocator myContactLocator. All observers must be either ground stations or spacecraft. Still gmat.ShowObjects("GroundStation") give me ControlCenter as about. Does someone have the solution or face the same problem Best regard
_______________________________________________ GMAT-developers mailing list GMAT-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-developers