Skip to content

Commit

Permalink
slow start, use a smaller angular step
Browse files Browse the repository at this point in the history
  • Loading branch information
did-g committed Jun 7, 2018
1 parent e20cd43 commit 39d2404
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/RouteMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,18 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu
bearing1 = heading_resolve( parent_bearing - configuration.MaxSearchAngle);
bearing2 = heading_resolve( parent_bearing + configuration.MaxSearchAngle);
}
std::list<double> &active = configuration.DegreeSteps;
std::list<double> start;
if (configuration.slow_start) {
for(double step = 0.; step <= 180.; step += 1.0) {
start.push_back(step);
if(step > 0 && step < 180) start.push_back(360-step);
}
start.sort();
active = start;
}

for(std::list<double>::iterator it = configuration.DegreeSteps.begin();
it != configuration.DegreeSteps.end(); it++) {
for(std::list<double>::iterator it = active.begin();it != active.end(); it++) {

double H = heading_resolve(*it);
double B, VB, BG, VBG;
Expand Down

0 comments on commit 39d2404

Please sign in to comment.