Youen

[old thread] Trajectories : atmospheric predictions

Recommended Posts

Can I add a request for a readout in the menu for a Lat/Lon of the landing point? This would help for precision landings instead of just visually guestimating. Maybe also the option to type in the Lat/Lon of your target too, but that's secondary to a readout of where you're actually going to land.

Other than that, great mod. So incredibly useful for everything.

Share this post


Link to post
Share on other sites

That was already noted here but I don't know if Kobymaru is using this old github bug tracker.

Share this post


Link to post
Share on other sites
Sorry, I misread that and only saw "unable to reproduce"

I can reproduce this and will work on a fix.

Also, how can you launch the rocket in map view? Staging is disabled there

Correct order:

3) Create a rocket that has the following parts (all stock)

4) Hit spacebar to launch the rocket

5) Go to map view

6) Press the trajectories button to activate the mod

7) Lock the game with NaN errors.

I'll investigate this. Anyone who wants to help is welcome.

I'm typing this as I try different things, so bare with me...

This just started happening to me (getting Aerodynamic force = NaN), almost randomly it seems (using the latest versions of FAR, not the dev version though, and Trajectories).

I tested it with just a booster, a probe core, and 4 batteries and it was fine, no lockup/freezes when going to the map. The same booster/probe core/batteries, plus 4 (or any number I guess) winglets, (and it seems any other stock wing, I don't have any mod wings), launch, go to map and it freezes. It's odd because I was flying a small plane with a turbojet earlier this morning with no problems.

My plane uses structural wing type a and wing connector b with a delta deluxe winglet, and of course air intakes.

I took the wings off my plane and replaced with all winglets and i can switch back and forth in the map just fine. I thought maybe it was the air intakes that helped but after slapping some on the test booster, launching and going to map it still freezes. Very strange.

Tried building a simple plane, just a cockpit, fuel tank, turbo engine, single radial intake and two wings and it froze. Only things missing are no landing gear, struts or cubic struts.

So, what seems to make it work is adding a landing gear. Just tried my booster test again with an added cubic strut, with a landing gear attached and i could go to map no problem, but when i took the landing gear off and went to map it freezes. Hope that helps, if you haven't already figured that out. :)

Also I'm running ubuntu 14.04 64bit, if that helps any. Usually haven't had any problems until recently, after getting trajectories to work (think i was still using the 0.25 version, so the trajectory wasn't showing up.

Share this post


Link to post
Share on other sites
[...]Posted things[...]

I would just like to confirm (on top of my earlier report) that I can do all of these things with the same results.

This is with Windows 32-bit KSP.

Share this post


Link to post
Share on other sites

Well, apparently adding a cubic strut, landing gear and an intake to my rocket doesn't fix the problem lol.

Update: The simple thing to do for now, or at least what I'm doing, is to just launch rockets with out fins on them. The one I tested was a little harder to control though. I was trying to finish up one of the "Take atmo readings at these four locations" so I just ended up using my plane that for some reason doesn't freeze the game. I could just remove trajectories for now, but it's really nice to have soo I'm working around the bug for now. :)

Edited by Sma

Share this post


Link to post
Share on other sites

I too am freezing when I go to the map with FAR and trajectories installed at the same time. I haven't tested it with the various parts mentioned above due to how long KSP takes to load each time I want to try something new, but I have no reason to think that I would find different results. For now, trajectories is getting the boot.

However, I have tried with and without the toolbar plugin and got the same effect each time. I've also noticed that I could successfully go to the map prior to launching, but as soon as I took flight, I would freeze.

Prior to updating FAR to its most recent version, trajectories didn't work, but at least it didn't freeze. Quite disappointing since FAR said in its changelog that it was now supposed to be compatible with trajectories. Hoping for some sort of fix soon as I make it a priority to land my returning crafts as close to KSC as possible. Not to mention I've got some annoying pressure and temperature readings to take on the opposite side of Kerbin and flying there in-atmosphere takes FOREVER.

Share this post


Link to post
Share on other sites
I too am freezing when I go to the map with FAR and trajectories installed at the same time. I haven't tested it with the various parts mentioned above due to how long KSP takes to load each time I want to try something new, but I have no reason to think that I would find different results. For now, trajectories is getting the boot.

However, I have tried with and without the toolbar plugin and got the same effect each time. I've also noticed that I could successfully go to the map prior to launching, but as soon as I took flight, I would freeze.

Prior to updating FAR to its most recent version, trajectories didn't work, but at least it didn't freeze. Quite disappointing since FAR said in its changelog that it was now supposed to be compatible with trajectories. Hoping for some sort of fix soon as I make it a priority to land my returning crafts as close to KSC as possible. Not to mention I've got some annoying pressure and temperature readings to take on the opposite side of Kerbin and flying there in-atmosphere takes FOREVER.

I'm using both FAR and Trajectories, along with about 60 other mods.

Windows 7, 32 bit KSP

Most mods installed by CKAN

Works fine for me.

Share this post


Link to post
Share on other sites
I'm using both FAR and Trajectories, along with about 60 other mods.

Windows 7, 32 bit KSP

Most mods installed by CKAN

Works fine for me.

Can you try the steps in this post here? With FAR and Trajectories installed I can reproduce NaN lockup every time without fail.

Share this post


Link to post
Share on other sites

Another person here getting problems when going to the map screen - I'm getting errors beginning "FAR Error: Aerodynamic force = NaN" in the game, followed by KSP hanging (no inputs having any effect) and spamming the log with:

getObtAtUT result is NaN! UT: NaN

(Filename: /BuildAgent/work/d63dfc6385190b60/artifacts/LinuxStandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

The log is linked below, I had to truncate because it had grown to about 0.5GB by the time I killed KSP. (The only text removed was multiple copies of the "Code:" block above.)

link: https://drive.google.com/file/d/0B513MM_oKJuSbjlYX1hNREJUbGc/view?usp=sharing

Share this post


Link to post
Share on other sites
why? how? Is that trajectory due to some other mod?

No it's "Fixed Body Mode." That's the path your ship will appear to take from someone standing on the ground.

Share this post


Link to post
Share on other sites

Is there a log for Trajectories when it's throwing errors trying to figure out a trajectory? I'd like to nail down why it doesn't like my planes with Mk4 parts. It works just fine on atmospheric exit but when I try and plot a re-entry it gives me repeated errors.

Share this post


Link to post
Share on other sites
However, I have tried with and without the toolbar plugin and got the same effect each time. I've also noticed that I could successfully go to the map prior to launching, but as soon as I took flight, I would freeze.

Prior to updating FAR to its most recent version, trajectories didn't work, but at least it didn't freeze. Quite disappointing since FAR said in its changelog that it was now supposed to be compatible with trajectories.

That was concerning one bug. Now there is another bug ;)

I'm using both FAR and Trajectories, along with about 60 other mods.

...

Works fine for me.

That's good for you, but not particularly helpful since both multiple users and myself can reproduce the bug.

Lolwut :confused:

What's happening here? Can you include steps to reproduce this nice picture?

No it's "Fixed Body Mode." That's the path your ship will appear to take from someone standing on the ground.

Are you trying to say that this is something "natural"?

Is there a log for Trajectories when it's throwing errors trying to figure out a trajectory? I'd like to nail down why it doesn't like my planes with Mk4 parts. It works just fine on atmospheric exit but when I try and plot a re-entry it gives me repeated errors.

It's not the Mk4 parts, it's everything that has a FARWingAerodynamicModel attached (meaning winglets and wings).

Some news on that bug: you can work around it, if you wait "a bit" after launch before activating Trajectories. If you want to know exactly when, open the Debug Log (Alt-F2, then F2 to get your menu back) and wait for the following log entries:

- Normal Shock Mach Number Curve Initialized

- Normal Shock Pressure Curve Initialized

- Prandlt-Meyer Expansion Curves Initialized

- Stagnation Pressure Curve Initialized

This happens when you first accelerate over 200 m/s.

Then you can safely activate trajectories.

Note that this is just a workaround and this bug will be fixed hopefully soon.

Edited by Kobymaru

Share this post


Link to post
Share on other sites
Are you trying to say that this is something "natural"?

Yup. Perfectly normal.

Do you know that Mars goes backwards in the sky every once in a while? This is essentially the same thing.

Share this post


Link to post
Share on other sites
Lolwut :confused:

What's happening here? Can you include steps to reproduce this nice picture?

Of course:

-make a nice really eccentric orbit,

-set "trajectories" with body fixed mode,

-put a node and play with all the buttons...

-printscreen + imgur!!

tips: for having a longer curve put an other node away in time (set a node, click right on it, +,+,...)

http://i.imgur.com/Y3489Tn.png

http://i.imgur.com/TLZzrZI.png

http://i.imgur.com/IjACBZt.png

http://i.imgur.com/djDPEHO.png

http://i.imgur.com/eKjQ1DY.png

As says 5thHorseman it's just a different point of view of this trajectories,

a nice example to understand is the trajectory of an inflate valve on a wheel of bikecycle:

if you fix a camera on the bike (imagine it for the example fixed on the frame on the side at 5m) u will see the valve rolling in a circle: http://www.flickr.com/photos/dno1967b/10199723413/in/photostream/,

but now imagine a guy on the street watching it (he dont move) , he will see a strange curve called cycloid:

http://www.flickr.com/photos/[email protected]/10205700625 ,

http://www.daviddarling.info/encyclopedia/C/cycloid.html ,

http://en.wikipedia.org/wiki/Cycloid

Now imagine you have really really big wheels (imagine wheels of 200 km!!!) and roling on the equatorial line of kerbin and bob kerman watching this from a hight ladder on north pole, he will see your valve doing this:

http://en.wikipedia.org/wiki/Epicycloid

Now with non-circular wheel (your elliptic orbit) or differents points of view: from an other planet, the sun ,a moon of an other planet...

u have weirds trajectories. You can record the same thing moving but have differents trajectories depending of your point of view (if u move/turn too).

For our case what i think (but not sure, correct me if i'm wrong) is in standard view the referential of the camera is fixed on the body(planet,...) of the SOI concerned by the trajectory( if u change SOI during the journey you will have some parts of trajectory in differents referentials), but without turning/rolling in space(imagine it looks always a star far away) so u will see the body turning in this referential,

and in "fixed body" mode the camera turn with the body: u don't see it moving ( but u will see the star moving:for kerbin it will do 1 turn each 6 hours),

http://i.imgur.com/iISLhaD.png

i'm am turning counter clockwise: in blue /yellow the classic ellipse with standard camera, in white is the same ellipse but with the rigid body camera: don't forget you are going faster at periapsis than apoapsis and the mun is turning conterclockwise too.

http://i.imgur.com/2ueGAEW.png

now the same ellipse but i'will turn clockwise at orange node (full retrograde to reverse)...

http://i.imgur.com/WTJnBSr.png

and there i will go so hight (and so so slow at apoapsis) that from the mun ground u will see the probe going backward a few time.

Edited by Skalou
complement

Share this post


Link to post
Share on other sites
Another person here getting problems when going to the map screen - I'm getting errors beginning "FAR Error: Aerodynamic force = NaN" in the game, followed by KSP hanging (no inputs having any effect) and spamming the log with:

getObtAtUT result is NaN! UT: NaN

(Filename: /BuildAgent/work/d63dfc6385190b60/artifacts/LinuxStandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

The log is linked below, I had to truncate because it had grown to about 0.5GB by the time I killed KSP. (The only text removed was multiple copies of the "Code:" block above.)

link: https://drive.google.com/file/d/0B513MM_oKJuSbjlYX1hNREJUbGc/view?usp=sharing

Hi I am having the exact same issue

complete log here

https://dl.dropboxusercontent.com/u/72963294/KSPPlugins/Trajectories/output_log.txt

Share this post


Link to post
Share on other sites

This mod wasn't working with NEAR, but now that I've switched back to FAR, it's a godsend. Great stuff - thank you for creating it.

Share this post


Link to post
Share on other sites

Hi, I absolutely love this mod, thank you so much for it.

I just have one question, I'm trying to understand why I don't see trajectory information calculated past the atmospheric encounter on a fly-by.

The image below shows it, that altitude isn't pulling the vessel in for a landing (there's no 'X' anywhere), but there's no white on the far side of it (presumably that trajectory will carry me out of Laythe orbit).

I'm trying to set up an aerobrake on Laythe that puts me on course for Tylo, but fly-by's like this don't seem to work the way I would expect.

q6UiJPm.png

Thanks!

David

Edited by davidparks21

Share this post


Link to post
Share on other sites
This needs to be in stock dude!

Many mods should, and need to be, and yet so few receive the honor :(

@Kobymaru: Maybe you should re-name body-fixed mode to surface mode, that might remove some confusion.

Share this post


Link to post
Share on other sites

It already is available via CKAN. It's called "Trajectories" there. If you don't see it make sure you have ksp updated to .90 and try refreshing your repository. If you still don't see it then you should post this in the CKAN thread.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.