Example #1
0
void
GlideComputerRoute::ProcessRoute(const MoreData &basic,
                                 DerivedInfo &calculated,
                                 const DerivedInfo &last_calculated,
                                 const RoutePlannerConfig &config,
                                 const GlidePolar &glide_polar,
                                 const GlidePolar &safety_polar)
{
  protected_route_planner.SetPolars(glide_polar, safety_polar,
                                    calculated.wind);

  Reach(basic, calculated, config);
  TerrainWarning(basic, calculated, last_calculated, config);
}
Example #2
0
void
RouteComputer::ProcessRoute(const MoreData &basic, DerivedInfo &calculated,
                            const GlideSettings &settings,
                            const RoutePlannerConfig &config,
                            const GlidePolar &glide_polar,
                            const GlidePolar &safety_polar)
{
  if (!basic.location_available || !basic.NavAltitudeAvailable())
    return;

  protected_route_planner.SetPolars(settings, glide_polar, safety_polar,
                                    calculated.GetWindOrZero());

  Reach(basic, calculated, config);
  TerrainWarning(basic, calculated, config);
}