UmbralRaptop changed the topic of #principia to: READ THE FAQ: http://goo.gl/gMZF9H; The current version is Fuchs. We currently target 1.5.1, 1.6.1, 1.7.x, 1.8.1, and 1.9.1. <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… | <egg> also 4e16 m * 2^-52 is uncomfortably large
<discord->
egg. — @lamont PVG is multiple shooting, right?
<discord->
lamont. — yeah
<discord->
lamont. — although for a burn (without staging) that'd just be single-shooting
<discord->
egg. — that seems nice wrt Principia integration (Principia would have to do the shooting and to compute the residual, and MJ can do the optimizing)
<discord->
lamont. — you have to integrate the costate equations as well
<discord->
Diego_. — Sure, not complaining, both mechjeb and principia are awesome, I was surrprised, I mean, it looks like everything is there, principia gives the total deltaV and navball direction, it's just in RP-1 the burn time seems less reliable
<discord->
egg. — yeah, I guess we can do that
<discord->
Diego_. — thanks for the reply anyway!
<discord->
egg. — @Diego_ things are not as simple as you think they are
<discord->
lamont. — so you've given r0, v0, m0 along with pv0 and pv0 (all three-vectors except for m0)
<discord->
lamont. — the residual is also stupidly funky depending on your target conditions
<discord->
egg. — yes, of course
<discord->
Diego_. — @egg I appreciate that 😅
<discord->
egg. — which really is mission-dependent, rather than just trajectory-dependent
<discord->
egg. — since which properties of the trajectories you want to optimize will vary
<discord->
egg. — hopefully a least-squares-in-the-plotting-frame cheesy approach would do the job
<discord->
lamont. — i need to dig up the paper again that goes into the proper way to do the terminal conditions for finite burn execution, because the naive way of (rT - rf, vT - v0) is not stable
<discord->
lamont. — oh right and frames
<discord->
lamont. — ergh
<discord->
egg. — yeah anything that tries to look at just the instantaneous final state is wrong by design
<discord->
egg. — you can have highly unstable target trajectories
<discord->
egg. — so you really want to look at the residual on that ultimate trajectory, for some definition thereof
<discord->
lamont. — so for rendezvous the naive way to do it is -- working backwards -- to pick a point on the destination orbit at a given time, then you have an unpowered coast phase on that destination orbit (where the time may be negative so the integrator needs to be able to go backwards in time), then that allows the attachment point to be optimized, then you have the powered burn phase, then you allow a coast (
<discord->
lamont. — trying to target in the plotting frame in principia will likely be horrible because of the primer vector equation. rotating coordinate systems will probably result in a lot of partial derivatives.
<discord->
egg. — hm
<discord->
egg. — the situation is a bit different though
<discord->
egg. — since you don't have a specific goal as for rendez-vous
<discord->
egg. — but rather a target trajectory (which the planner tells you is feasible, since you planned it with roughly the right configuration)
<discord->
egg. — and since that is not pointlike you likely want to look at a residual integrated over the whole target trajectory
<discord->
lamont. — for the most part i suspect that a finite burn executor would work fine just assuming high energy orbits and burns and single body keplerian physics. it'd be vastly more accurate that what principia has now.
<discord->
lamont. — that would fail near the L-points and where the central body is ambiguous, but i'll bet that PVG's approach inherently fails near there (the indirect method is going to have a heart attack from Lissajous orbits
<discord->
egg. — hm
<discord->
egg. — I should read up on PVG one of these centuries
<kmath>
<eggleroy> <Majiir> I really am imagining egg just drowning in a sea of papers https://t.co/P2iqkDT7CN
<discord->
lamont. — yep
<discord->
lamont. — PVG is very, very mathematically unstable
<discord->
lamont. — the condition number of the jacobian is very high, even just for a simple finite burn in LEO
<discord->
lamont. — stuff like low thrust trajectory optimization led to the development of direct collocation methods back in the 70s
<discord->
egg. — So I guess therein lies the next iteration of MechJeb guidance
<discord->
egg. — :-P
<discord->
egg. — what decade are you in at the moment
<discord->
lamont. — PVG is still kinda 60s-ish
<discord->
egg. — you started with atlas-centaur so you have come a long way already
<discord->
lamont. — well probably 70s-ish
<discord->
lamont. — in the 80s direct methods started to take over for mission planning anyway
<discord->
egg. — direct methods ?
<discord->
lamont. — yeah
<discord->
egg. — ah direct collocation
<discord->
lamont. — yeah
<discord->
lamont. — discretize-then-optimize-without-costate (the "without costate" part i think is why it is "direct" -- you just write down the optimization problem and turn the crank -- kinda...)
<discord->
lamont. — indirect is the calculus of variations / pontryagin maximum principle technique in PVG
<discord->
egg. — "turn the crank" on an optimization problem is an art already
<discord->
egg. — I fear we may have to start looking at that crank with #2400
<discord->
lamont. — yeah its never that simple, but you don't have to mess around with costate and transverasality conditions, which is certainly voodoo and not "crank turning"
<discord->
egg. — haha
<discord->
lamont. — then there's convexification and successive convexification
<discord->
egg. — I should successively overrelax
* discord-
egg. — goes to bed_
<discord->
lamont. — yep
egg|cell|egg has quit [Ping timeout: 204 seconds]
egg|cell|egg has joined #principia
raptop has quit [Ping timeout: 378 seconds]
<discord->
Conventia. — Does principia prevent doing the set orbit cheat?
<discord->
lamont. — it probably does not prevent it, but at best it doesn't work and at worst it eats the vessel
<discord->
Conventia. — It seems to just teleport it back in place.
<egg|laptop|egg>
hacking gravity is the escape hatch
<discord->
Conventia. — I mostly just want to have an object that I can use to rendezvous with in a specific orbit.
<discord->
Conventia. — Because well... planning orbits is hard.
<discord->
Adouge. — @lpg this would also be the way to go to remove the airlaunch orientation madness, right?
egg|cell|egg has quit [Ping timeout: 190 seconds]
<discord->
Ram. — I am returning to RO after a long time and I installed principia for the first time. Does it change anything until after orbiting earth?
<discord->
Ram. — I am just done the sounding rocket phase and wondering if I need to start to understand principia for the first sattelites missions
egg|cell|egg has joined #principia
<discord->
Butcher. — You can largely ignore it for getting to orbit.
<discord->
Butcher. — You will have a bit more precession than stock.
egg|cell|egg has quit [Read error: Connection reset by peer]
egg|cell|egg has joined #principia
egg|laptop|egg has joined #principia
<discord->
Conventia. — I think the first time it really matters is lunar missions (or the communication constellation).
<discord->
Conventia. — Otherwise, it's mostly just, warp to apoapsis and burn prograde.
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #principia
egg|cell|egg has quit [Ping timeout: 190 seconds]
egg|cell|egg has joined #principia
egg|cell|egg has quit [Read error: Connection reset by peer]
egg|cell|egg has joined #principia
egg|laptop|egg has quit [Remote host closed the connection]
egg|cell|egg has quit [Ping timeout: 204 seconds]
egg|cell|egg has joined #principia
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|cell|egg has joined #principia
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|cell|egg has joined #principia
egg|cell|egg has quit [Ping timeout: 378 seconds]
egg|cell|egg has joined #principia
egg|cell|egg has quit [Ping timeout: 190 seconds]
egg|laptop|egg has joined #principia
egg|cell|egg has joined #principia
<discord->
bongotastic. — Someone on another channel suggested that Principia may be to blame for instability when using airlaunch for X-planes. Anyone can confirm, or know of a workaround?
<discord->
bongotastic. — I wouldn’t have thought that Principia would mess with atmospheric flights...
<discord->
siimav. — Tick the hack gravity option from the f12 cheat menu when airlaunching
<discord->
egg. — if there is a bug when airlaunching I don’t know about it, and you should tell us about it
<discord->
egg. — on the other hand you should make sure that it is Principia and not some other thing
<discord->
bongotastic. — Thanks! I’ll try that whenever MkII comes out of production. Too bad that KRASH can’t do airlaunch to try this before it is for real.
<discord->
egg. — @siimav are you aware of an airlaunch-related issue?
<discord->
siimav. — I've heard reports
<discord->
egg. — or is that just generic advice to distinguish a principia bug from a non-principia one
<discord->
siimav. — So far only principia users have reported the vessel spinning out of control as soon as physics loads
<discord->
bongotastic. — My experience.
<discord->
siimav. — Even then, I think it doesn't happen every time
<discord->
bongotastic. — I’ve recovered barely once, but mostly just crash into the sea.
<discord->
egg. — I suspect some of that might be people learning that "unstability comes from Principia" in Fubini when we had that bug, and continuing to diagnose that one now that it is largely gone
<discord->
lpg. — It's happened every time to me after the first time it happened. It's hard to pinpoint, since it isn't a feature I use often; but if I only had one guess, I'd guess it was introduced with fuchs
<discord->
lpg. — however my sample size is 3
<discord->
bongotastic. — If there is any way that I could document this, happy to do so.
<discord->
egg. — @lpg well, if you have something reproducible send it our way
<discord->
egg. — Don’t recall doing much decoupling-related in Fuchs
<discord->
bongotastic. — Sure. What would you need? The process, logs, any other files?
<discord->
lpg. — there's no decoupling
<discord->
lpg. — "airlaunching" involves teleporting planes from the runway to a partocular altitude and velocity
<discord->
lpg. — "airlaunching" involves teleporting planes from the runway to a particular altitude and velocity (edited)
<discord->
egg. — what is that sorcery
<discord->
lpg. — in a way related to hyperedit and krash; things we already know run into issues with principia
<discord->
lpg. — in a way related to hyperedit and krash mechanisms; things we already know run into issues with principia (edited)
<discord->
egg. — yeah, I don’t think we want to do any amount of work to support that kind of silliness
raptop has joined #principia
<discord->
lpg. — that would be why I hadn't brought it up
<discord->
lpg. — but since we're on the topic now... any thoughts on whether "hack gravity" is something that can be turned on & off programmatically?
<discord->
DRVeyl. — There has to be a programmatic method. It's just how easy or hard KSP will make it ;)
<discord->
egg. — @lpg hack gravity does nothing in and of itself
<discord->
DRVeyl. — The sorcery is avoiding rewriting vessel spawn logic. Ideally it would just spawn into flight.
<discord->
egg. — we just listen to that setting and programmatically use it to ignore the current vessel
<discord->
egg. — it is an escape hatch, not an API
<discord->
egg. — please don’t turn the escape hatch into an API
<discord->
egg. — it is inconvenient by design
<discord->
siimav. — Thing is that the escape hatch will become the API if there's no other option
<discord->
egg. — in that case I will remove the escape hatch
<discord->
siimav. — ¯\_(ツ)_/¯
<discord->
siimav. — I doubt that would do good for anyone
<discord->
egg. — indeed
<discord->
egg. — so if you have a use case that would require you to hack gravity all the time, report it
<discord->
egg. — don’t automate hacking gravity
<discord->
egg. — the hack gravity escape hatch does all sorts of nasty things (Principia will forget about all loaded vessels, not just the active vessel, those will get moved around since gravity will no longer properly apply to them, you will lose your flight plans, etc. etc.)
<discord->
egg. — @lpg so if you start automating that, you will produce extremely confusing behaviour
<discord->
egg. — at which point the minor benefit to us of providing a workaround for some edge cases will be outweighed by the cost of dealing with the noise,
<discord->
siimav. — Well, ideally principia would detect whether the orbit was changed through hyperedit, KCT etc and not overwrite those orbital parameters right away.
<discord->
siimav. — Or at least provide an API for those mods to tell Principia to not do that.
<discord->
siimav. — Well, ideally principia would detect whether the orbit/position was changed through hyperedit, KCT etc and not overwrite those orbital parameters right away. (edited)
<discord->
lpg. — I expect in this case it isn't "orbital parameters" causing issues, but conservation of angular momentum
<discord->
lpg. — I'd also guess there's a better than even chance is that the teleportation is "doing it wrong"
<discord->
lpg. — I'd also guess there's a better than even chance that it's the teleportation that's "doing it wrong" (edited)
<discord->
egg. — yeah a lot of the vessel-spawning mods break assumptions that are true for stock-spawned vessels
<discord->
egg. — iirc we have a crash with ELP
<discord->
siimav. — ELP?
<discord->
egg. — taniwha’s mod
<discord->
Standecco. — extraplanetary launchpads is my guess
<discord->
DRVeyl. — Not sure there is a described method for telling Principia to NOT apply that angular momentum conservation and just accept some new state as the truth.
<discord->
DRVeyl. — If there is, I'm sure we'd be happy to do that
<discord->
egg. — there is no such method
<discord->
siimav. — Yeah but if hack gravity fixes the airlaunch issue then that just means that Principia applying it's magic would have to be delayed for a bit
<discord->
egg. — and building such a method would be some work, so again my question is what the usecase is
<discord->
DRVeyl. — The use case is not having to rewrite vessel spawn logic in order to change a new vessel's position and orientation, I believe.
<discord->
egg. — well, then, no
<discord->
DRVeyl. — Position, velocity and orientation
<discord->
egg. — the "invariants" of KSP are hard enough to work with
<discord->
egg. — the weird breakages thereof that weird mods introduce are more than we care about
<discord->
egg. — I suspect the vessel situation or a similar mechanism could be used by the spawning code to signal that the vessel is not ready to be looked at
<discord->
DRVeyl. — Possibly. What conditions does principia use to identify a vessel is or is not ready to be looked at yet?
<discord->
egg. — dead state, empty GUID (don’t ask), situations other than flying/suborbital/orbiting/escaping, will hit the ground in the next frame, unready kerbal
<discord->
siimav. — So in case of the airlaunch Principia doesn't apply itself before the vessel has been teleported into the air and is unpacked.
egg|laptop|egg__ has joined #principia
egg|laptop|egg has quit [Ping timeout: 378 seconds]
raptop has quit [Read error: Connection reset by peer]
raptop has joined #principia
egg|laptop|egg__ has quit [Remote host closed the connection]
<discord->
egg. — @DRVeyl @lpg so I think the conclusion is that the attitude adjustments should be made in the prelaunch situation
<discord->
egg. — if they are made unpacked and flying, we will interact with them in entertaining ways
<discord->
egg. — (or @siimav, whoever maintains that airlaunch thing)
<discord->
siimav. — Well they are already
<discord->
egg. — hmm
<discord->
egg. — > Yeah but if hack gravity fixes the airlaunch issue then that just means that Principia applying it's magic would have to be delayed for a bit
<discord->
egg. — @siimav considering that, perhaps a few more frames of prelaunch would do the trick?
<discord->
egg. — (or is some part of stock overriding your prelaunch without your knowledge? that can be a concern)
<discord->
siimav. — It's stock that changes the vessel situation after the *orbit* has been changed
<discord->
egg. — right, so you would then need to reset it to prelaunch I suppose
egg|laptop|egg has joined #principia
<discord->
Herrkurt. — So after putting a couple things in orbit my game stutters during high timewarp (warping through build times). Is that normal or a sign that my CPU can't handle Principia?
<discord->
DRVeyl. — It is both normal and a sign that there's a lot of math to happen very quickly at high time warps in Principia.
<discord->
Herrkurt. — Alright. I can live with stuttering timewarp. I just didn't want it to break the orbits of planets or anything.
Jesin has quit [Quit: Leaving]
Jesin has joined #principia
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #principia
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg_ is now known as egg_
egg_ is now known as egg|anbo|egg
egg|anbo|egg has quit [Ping timeout: 190 seconds]
egg|cell|egg has quit [Ping timeout: 189 seconds]
egg|laptop|egg has joined #principia
egg|anbo|egg has joined #principia
egg|cell|egg has joined #principia
egg|anbo|egg has quit [Read error: Connection reset by peer]
egg|laptop|egg has quit [Remote host closed the connection]