Are multiple slingshots around the same planet possible? I tried to recreate MESSENGER's trajectory, which has multiple Mercury flybys, but only get "Error: Flight plan waypoints x and y are set to the same body. ".
Yeah, in the Flight Plan window you need to set the "number of revolutions" between Earth and Earth to +/-1 (that is, try either +1 or -1, could be either solution). Sometimes the Lambert solver gets a bit finiky here, but it should be possible. If you get it to work, please do let me know. I've never tried to recreate Messenger's flight.
Eliminating the need to enter this stuff manually is a big part of v2.1. I'm in the middle of two new features right now, having just finished the Departure Analysis Tool:
1) eliminating the need for the user to manually enter the transfer type (already coded up and working) and number of revolutions (not started), and
2) a new Flight Constraints window, which will allow the user to set the following constraints on the flight:
--Set the departing/arriving/swing-by date & time for a particular body in the Flight Plan
--Set a maximum/minimum transit time between two bodies in the flight plan (which also allow you to set the maximum/minimum transit time for the whole flight plan if you select the first and last body in the flight plan)
--Possibly other time-related constraints (suggestions welcome!)
3) Check box to consider (or disable) multi-revolution solutions
What I intend to happen for for Messenger-like trajectory in v2.1 is something like this: When optimizing such a trajectory, TOT realizes that you're looking to do an Earth-Earth flyby and understands that the "number of revolutions" between these two points in the flight plan must not be zero. It internally sets a constraint that says abs(numRevs)>=1 and moves on.
Btw, this "number of revolutions" thing is required by the Lambert solver, which is why I discuss it here at all.
---------- Post added at 12:57 PM ---------- Previous post was at 12:46 PM ----------
I was doing a flight plan from Earth-Jupiter-Europa hoping to finding an arrival time at Juptier that would allow me to approach Europa without having to perform and orbit insert around Jupiter first. I think you must be right about why I am seeing the problem because the ephemerides data for Europa was with respect to Jupiter and not the sun. Perhaps something to be implemented in a later version?.
TOT currently uses a patched conics approach to determining flybys and all that. This means that the central body for the flight plan pretty much needs to remain fixed and that its hard to move "down" the celestial body hierarchy from Planet to Moon-Of-Planet. Here's why. Let's say you do your Earth to Jupiter approach. Now, where does the TOT think you are? Well, in the sun-centered coordinate system, it has you at exactly the location of Jupiter! Now try and translate this over to a Europa fly-by. Where are you? Well, you're still centered on Jupiter's location of course, because this is all the information the TOT has. This is obviously completely unrealistic (starting out inside Jupiter) and the Lambert solver will choke at having to deal with a position vector of <0,0,0> on top of it all.
There may be a nice way of doing something like this, and it's something I would LOVE to implement, I just haven't given the problem enough thought really. Suggestions, of course, are welcome.