Jump to content

[1.8–1.11] Astrogator v0.10.2


Recommended Posts

1 hour ago, HebaruSan said:

Hmm, not sure, but maybe we can figure out an upper bound...

The old logic looked for an optimal transfer solution within a 90 degree arc around an initial guess based on the relative phase angles (KAC's transfers use essentially the same logic as that initial guess). The problem occurred when the solution was in the future but the corresponding initial guess was in the past. In the worst case, we can assume that they're 45 degrees apart (initial guess at the center of the search interval and the solution at the future edge) and that the initial guess is in the very recent past (say, 1 second). So about of the starting body's orbit, or 53 Kerbin days if you start from Kerbin? But that's only the absolute worst case; 50% of the time, the solution is before the initial guess, and the problem wouldn't happen at all, and in the remaining 50% the number of days probably ranges from 0 to 53 with some distribution unknown to me.

(For those curious, the fix just got rid of the initial guesses entirely. The first 90 degree search arc now starts at the immediate present in all cases, because our method for discarding bad guesses is efficient.)

I'll go with 60 days, for now. That gives me more than enough time to reorient my ship's orbits, after refueling at my station in Kerbin orbit, so I have burn time separation between each. The problem I run into is...I can separate the 4 ships, in orbit, so I can have time to do each burn, without any overlap...but warping 60 days tends to bring any minor inconsistency in the orbits into play. In other words, I can have 4 ships 90* apart in Kerbin orbit, but 60 days of warp? Who knows? I haven't given up on KSP 1.8.1...entirely...but I already see that "Eveengines" mod hasn't been listed as 1.8.1 compatible...that's when I stopped looking. I know that some mods may never get upgraded, and I will look at which are "required" by me. For now, I like Astrogator and I will live with the issue in KSP 1.7.3 and Astrogator 0.9.2.

Thank you much for your time...and work!

Edited by strider3
Link to post
Share on other sites
1 hour ago, HebaruSan said:

So about of the starting body's orbit, or 53 Kerbin days

Oops, just noticed an error here; it's not the starting body's orbit that we searched but a combination of the starting and destination orbits, based on how quickly the angle between the planets changes:

	// We'll search a time span this wide for the best burn time
	double searchInterval = 0.5 * Math.PI / Math.Abs(phaseAnglePerSecond);

For farther-away planets (Moho or Eeloo), phaseAnglePerSecond will be larger and the interval and hence the possible error smaller, and for closer planets (Eve or Duna), the opposite would hold.

	double phaseAnglePerSecond =
		  (Tau / transferDestination.GetOrbit().period)
		- (Tau / currentOrbit.period);

think that simplifies down to:

	// We'll search a time span this wide for the best burn time
	double searchInterval = Math.Abs(
		0.25 / (1.0 / transferDestination.GetOrbit().period
			- 1.0 / currentOrbit.period));

Using the orbital periods from the KSP wiki, that gives us these upper bounds for transfers starting from Kerbin:

Planet Period (s) Interval (s) Worst case (days)
Moho 2,215,754.00 729,586.49 16.89
Eve 5,657,995.00 3,671,758.37 84.99
Kerbin 9,203,545.00 N/A N/A
Duna 17,315,400.00 4,911,424.79 113.69
Dres 47,893,063.00 2,848,225.97 65.93
Jool 104,661,432.00 2,522,725.54 58.40
Eeloo 156,992,048.00 2,444,174.19 56.58
Link to post
Share on other sites

I've decided to try to upgrade KSP, after installing CKAN  to export my modpack first. I really need to run the newer version of Astrogator to avoid having ships in orbit for a year or more before the upcoming transfer window. Wish me luck!

I did, however, come up with another question ( :rolleyes::D). Is there a way to find the next transfer window if you do not have a ship in orbit? Hypothetical example:

I have no ships in orbit around Kerbin but I plan on building some for a trip to Dres. How can I find the next Astrogator transfer window so I know when to start building and launching ships into Kerbin orbit, to make the next window? I might be really over-thinking this but I dislike (me being diplomatic) doing months of work only to get to that..."ooops" moment...because I didn't ask a question.\

Ignore that last bit...as usual it became obvious after posting. I can open Astrogator at any time and see the next window. That part is not dependent on having a ship in orbit...only the create node part is. I'm getting KSP gun shy, me thinks.

Edited by strider3
Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...

Why is there not an option to plot the best encounter for the Mun when orbiting Kerbin ?

 

Edit: NM, now i see it... wasnt able to on previous versions.

Edited by Redacted
Link to post
Share on other sites
28 minutes ago, Redacted said:

Why is there not an option to plot the best encounter for the Mun when orbiting Kerbin ?

 

Edit: NM, now i see it... want able to on previous versions.

Have to admit I'm very confused, that's pretty much all this mod does. Maybe instead of demanding a defense of "Why is there not," you could focus more on explaining the problem you're having?

Link to post
Share on other sites
  • 2 weeks later...

There's a small but niggling issue in Astrogator where, if you repeatedly open and close the interface, it will move farther and farther away from the center of the screen (in a horizontal direction only) until it's partially off the screen. It will only stay in place if it's placed perfectly in the center (which is where it starts when loading up KSP). I'm not sure if it's relevant, but I play on 2560x1440 in windowed mode, using Borderless Gaming to make the game borderless fullscreen.

Link to post
Share on other sites
45 minutes ago, BTAxis said:

There's a small but niggling issue in Astrogator where, if you repeatedly open and close the interface, it will move farther and farther away from the center of the screen (in a horizontal direction only) until it's partially off the screen. It will only stay in place if it's placed perfectly in the center (which is where it starts when loading up KSP). I'm not sure if it's relevant, but I play on 2560x1440 in windowed mode, using Borderless Gaming to make the game borderless fullscreen.

Yup, that's known and expected if you use UI scaling, because UI scaling makes it impossible to predict where the window will appear in a sane way:

On 11/11/2019 at 11:36 PM, HebaruSan said:
  • There will be some gradual "drift" at some scales if you open and close the window repeatedly due to the numbers not matching up precisely, but it should be an improvement over not being able to see it at all.
Link to post
Share on other sites
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...