I am trying to write a python script for GMAT to detect contacts between a satellite and a ground station. I have declared the contact locator as such:
access_event = gmat.Construct("ContactLocator","CL") access_event.SetField("Target" ,"Sat0") access_event.SetField("Observers",'goddard') access_event.SetField("Filename","ContactLocator.txt")
I am also propagating the satellite with the function
for j in range(int(num_steps)): gator.Step(sc.sim_timestep)
I am not sure how to run the contact locator to get results. Any help would be great.