Skip to content

Commit

Permalink
Fixed time step
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Apr 17, 2017
1 parent b0ad02a commit 8490ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/designer/finalprj-neptune.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
fileprefix = "prj-neptune"
outputdir = "outputs"
verbose = true
step = "24h"
step = "2h"
flybyplanets = "Venus Earth Jupiter"

[launch]
Expand Down
4 changes: 2 additions & 2 deletions cmd/designer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func main() {
if verbose {
log.Printf("[info] searching for %s -> %s", launch.planet.Name, flybys[0].planet.Name)
}
c3Map, tofMap, _, _, vInfArriVecs := smd.PCPGenerator(launch.planet, flybys[0].planet, launch.from, launch.until, flybys[0].from, flybys[0].until, timeStep.Hours()/24, timeStep.Hours()/24, smd.TTypeAuto, true, ultraDebug, false)
c3Map, tofMap, _, _, vInfArriVecs := smd.PCPGenerator(launch.planet, flybys[0].planet, launch.from, launch.until, flybys[0].from, flybys[0].until, 24/timeStep.Hours(), 24/timeStep.Hours(), smd.TTypeAuto, true, ultraDebug, false)
if *cpuprofile != "" {
return
}
Expand Down Expand Up @@ -313,7 +313,7 @@ func GAPCP(launchDT time.Time, inFlyby Flyby, planetNo int, vInfIn []float64, pr
}
} else {
log.Printf("[info] searching for %s (@%s) -> %s (@%s :: %s)", fromPlanet.Name, launchDT.Format(dateFormat), toPlanet.Name, minArrival.Format(dateFormat), maxArrival.Format(dateFormat))
vinfDep, tofMap, vinfArr, vinfMapVecs, vInfNextInVecs := smd.PCPGenerator(fromPlanet, toPlanet, launchDT, launchDT.Add(24*time.Hour), minArrival, maxArrival, timeStep.Hours()/24, timeStep.Hours()/24, smd.TTypeAuto, false, ultraDebug, false)
vinfDep, tofMap, vinfArr, vinfMapVecs, vInfNextInVecs := smd.PCPGenerator(fromPlanet, toPlanet, launchDT, launchDT.Add(24*time.Hour), minArrival, maxArrival, 24/timeStep.Hours(), 24/timeStep.Hours(), smd.TTypeAuto, false, ultraDebug, false)
// Go through solutions and move on with values which are within the constraints.
vInfInNorm := smd.Norm(vInfIn)
if ultraDebug {
Expand Down

0 comments on commit 8490ed9

Please sign in to comment.