Click or drag to resize


A RoutePropagator combines various RouteSegments (RouteProcedures and RouteConnections) and their associated RouteProfiles to create a PropagatedRoute. The PropagatedRoute can then create a Point representing the state of the platform along the route. Various other Scalars and Axes are included which use the PropagatedRoute to analyze the geometry along the route and provide attitude for a platform traversing the route.

Note Note

The functionality described in this topic requires a license for the Route Design Library.

Propagating Routes

The construction of a route requires several different pieces. The core piece is the RoutePropagator which in turn produces a PropagatedRoute instance containing metadata and trajectory for the specified route. To create a route, the user adds RouteSegments to the propagator. There are two ways to do this. Either the user can configure the DefaultConnectionBehavior and then add Procedures or the user can alternate between adding Procedures and Connections.

Adding connections directly allows users fine control over the geometry between RouteProcedures. However, for most cases, reconfiguring the default behavior on the propagator is sufficient to create a route. To do this, all the user needs to do is to specify the ProfileDynamics, ProfileSpeed, and indicate what the horizontal and vertical behavior of the geometry should be. Note that if a TerrainProvider is involved, the user may also need to configure additional properties indicating how to treat the terrain.

ProfileSpeed cruiseSpeed = new ProfileSpeed(30.0, SpeedReference.Total); // ~67 miles per hour

ProfileDynamics profileDynamics = new ProfileDynamics();
double inclineAngle = Trig.DegreesToRadians(10.0);
profileDynamics.AscentSpeed = cruiseSpeed.TargetSpeed * Math.Sin(inclineAngle);
profileDynamics.DescentSpeed = 1.5 * profileDynamics.AscentSpeed;
profileDynamics.PitchUpAcceleration = 0.4 * Constants.EarthSurfaceGravity;
profileDynamics.PushOverAcceleration = 0.6 * Constants.EarthSurfaceGravity;
profileDynamics.ThrustAcceleration = 0.4 * Constants.EarthSurfaceGravity;
profileDynamics.ThrustDeceleration = 0.6 * Constants.EarthSurfaceGravity;

RoutePropagator propagator = new RoutePropagator();
propagator.CentralBody = earth;

propagator.DefaultConnectionBehavior.SurfaceShape = localTerrain.Shape;
propagator.DefaultConnectionBehavior.KindOfSurfaceConnection = KindOfSurfaceConnection.RhumbLine;
propagator.DefaultConnectionBehavior.Dynamics = profileDynamics;
propagator.DefaultConnectionBehavior.Speed = cruiseSpeed;

if (useTerrainForProfiles)
    propagator.DefaultConnectionBehavior.KindOfProfile = DefaultProfileBehavior.AvoidTerrain;
    propagator.DefaultConnectionBehavior.TerrainSurface = localTerrain;
    propagator.DefaultConnectionBehavior.TerrainSamplingDistance = 100.0; // ~328 feet
    propagator.DefaultConnectionBehavior.MinimumHeightAboveTerrain = 400.0; // ~1312 feet
    propagator.DefaultConnectionBehavior.KindOfProfile = DefaultProfileBehavior.StandardConnection;
    propagator.DefaultConnectionBehavior.TerrainSurface = new EllipsoidTerrainProvider(earth.Shape, earth.FixedFrame);

After propagating a route and generating a PropagatedRoute, the user can create a Point, representing the position along the route and its derivatives, by calling CreatePointFromRoute. In most cases, the propagator will attempt to produce a feasible route, but sometimes the geometry is such that connections between two procedures or profiles are not possible with the user specified parameters. When this happens, the propagator will report errors in the ProcedureConfigurationResults and ConnectionConfigurationResults. This will identify which procedure likely caused the problem and whether the problem occurred from the surface geometry, height, or speed.

PropagatedRoute route = propagator.PropagateFromTime(start);
if (route.HasConfigurationErrors)
    foreach (ProcedureConfigurationResult error in route.ProcedureConfigurationResults)
        RouteProcedure problemProcedure = error.Procedure;
        SurfaceConnectionStatus entryError = error.SurfaceEntryResult.ConnectionStatus;
        SurfaceConnectionStatus exitError = error.SurfaceExitResult.ConnectionStatus;
        HeightConfigurationStatus heightError = error.ProfileResult.HeightConfigurationResult.ConnectionStatus;
        SpeedConfigurationStatus speedError = error.ProfileResult.SpeedConfigurationResult.ConnectionStatus;

Point trajectoryPoint = route.CreatePointFromRoute();
JulianDate routeStart = route.Start;
JulianDate routeStop = route.Stop;