egg changed the topic of #principia to: Logs: https://esper.irclog.whitequark.org/principia | <scott_manley> anyone that doubts the wisdom of retrograde bop needs to get the hell out | https://xkcd.com/323/ | <egg> calculating the influence of lamont on Pluto is a bit silly…
UmbralRaptop has joined #principia
<queqiao-> ⟨Starscraper⟩ So, when you do an orbit analysis in Principia, what is the
<queqiao-> "longitude of the ascending node" in reference to? I know what LAN is, just not what it's being measured with respect to, since it seems like it can't be geographic longitude since it's not changing with the Earth's spin. Is there some reference celestial sphere longitude or something?
<queqiao-> ⟨lpg⟩ the first point of aries
<queqiao-> ⟨lpg⟩ (don't ask me what that means, but do ask google if you don't already know)
<queqiao-> ⟨lpg⟩ it is noteworthy that stock ksp's LAN does _not_ use the first point of aries
<queqiao-> ⟨Starscraper⟩ Ah, so it is on the celestial sphere - more importantly, it's inertial. That's nice, thanks.
<queqiao-> ⟨lpg⟩ (and so mechjeb (for example) and principia don't agree. I think it's a fixed offset, but don't recall what)
<queqiao-> ⟨Starscraper⟩ Now to find out how it relates to KSP's internal base coordinate system...
<queqiao-> ⟨lamont⟩ i don't quite understand that, why is stock KSP's Planetarium.right not the first point of ares?
<queqiao-> ⟨Starscraper⟩ Now to find out how it relates to KSP's […] ⮪ If anyone knows off the top of their head that'd be really cool, but it's a rather obscure question so I'm gonna go hunting for that through a little experimenting.
<queqiao-> Need it so I can write a kOS ascent program that can launch into an orbit of a given inclination and LAN (or at least, tell how far off the current launch site currently is from being on the target orbital plane)
<queqiao-> ⟨lamont⟩ and is the discrepancy with Principia and MJ more to do with RSS using the wrong orbital elements?
<queqiao-> ⟨lamont⟩ i'm probably missing something simple
<queqiao-> ⟨lpg⟩ I'll just clarify that when I said "stock ksp", I meant "principia-less RSS". I have no further information on the topic
<queqiao-> ⟨lamont⟩ lol, makes sense
<queqiao-> ⟨lpg⟩ Really, the extent of my knowledge is that if I get a LAN out of TWP and feed it into PVG, I get the expected results; but then principia displays a different LAN. And previous discussions have convinced me that principia isn't the one doing it wrong
<queqiao-> ⟨lpg⟩ * "wrong"
<queqiao-> ⟨lamont⟩ yeah that seems at least awkward, and I'm trying to sort out if MJ should do something different. it kind of sounds like RSS needs to get fixed (but that smells like a hard breaking change that would ruin saves, unless you wrote some kind of migration tooling)
<queqiao-> ⟨Quadrupole⟩ ⟪lpg⟫ (and so mechjeb (for example) and […] ⮪ MJ and stock's LAN is greater than Principia's LAN by exactly 270 degrees
<queqiao-> ⟨Quadrupole⟩ * are
<queqiao-> ⟨Quadrupole⟩ +(and the correct one)
<queqiao-> ⟨Quadrupole⟩ * (the
<queqiao-> ⟨Quadrupole⟩ So for example, MJ and stock would tell you the moon's LAN (wrt earth's equator) is around 270 degrees, whereas Principia and other ephemerides would tell you it's actually around 0 degrees.
<queqiao-> ⟨lpg⟩ I'll go on a limb and say no MJ _by itself_ shouldn't do something different. TWP and MJ agreeing is a fairly useful property
<queqiao-> ⟨Starscraper⟩ Well, I've been experimenting around to see if I could find the formula for getting the orbit normal vector in game coordinates from Principia's Inclination and and LAN values.
<queqiao-> Using kOS "print vcrs(body:position, ship:velocity:orbit):normalized" to get the orbit normal vector. Or, anti-normal, as the case may be. I dunno of the left-handed coordinate system flips it or not with kOS's cross product - but whatever, the important thing is it's orthogonal to the orbital plane.
<queqiao-> And I seem to have gotten the formula. But there seems to be a small correction factor "L0" for the formula, which is kinda odd.
<queqiao-> x = -sin(LAN + L0) * sin(Inc)
kitty has joined #principia
<kitty> 🐈 hows it going?
* raptop symplecticly pets the kitty
* kitty flops over and begins purring
<kitty> raptop: how have you been?
<raptop> surviving, not as much progress as I'd like on things, but *gestures vaguely*
queqiao-_ has joined #principia
queqiao- has quit [Ping timeout: 189 seconds]
queqiao-_ is now known as queqiao-
<kitty> raptop: valid, thats a mood~ 🐈
_whitelogger has joined #principia
<queqiao-> ⟨egg⟩ ⟪Starscraper⟫ So, when you do an orbit analysis in […] ⮪ This comment may have some answers for you. https://github.com/mockingbirdnest/Principia/blob/7e8200a620b19e29455c2df5baccbc5888cdd52b/physics/body_centred_non_rotating_dynamic_frame.hpp#L34-L53
<queqiao-> ⟨Butcher⟩ Raptop, TI-92 is 68000 so it's kinda 16-bit
_whitelogger has joined #principia
<queqiao-> ⟨Starscraper⟩ ⟪egg⟫ This comment may have some answers for […] ⮪ Are these the coordinates used to derive the Inclination and LAN that Principia displays?
<queqiao-> ⟨egg⟩ Yes.