Jump to content

[WIN/MAC/LINUX] KSP Trajectory Optimization Tool v1.6.10 [Major LVD Improvements!]


Recommended Posts

Apologies if other stuff is broken. :) Let me know what you find. :)

No worries, will do.

"Real" astrodynamicists always use radius (that is, from center of body) in their work, never altitude. Altitude is a foreign language to us. :) It's not something I often think in, but KSP defies a few real conventions for the sake of gameplay. If you want, I can add periapsis/apoapsis altitude to the tooltip, too.

Yea, altitude would be good. That, or some way to remind us players that the value is from the planet center - that's the thing. As long as I can remember that I would be okay, to be honest.

Link to comment
Share on other sites

No worries, will do.

Thanks!

Yea, altitude would be good. That, or some way to remind us players that the value is from the planet center - that's the thing. As long as I can remember that I would be okay, to be honest.

I've added the apo/peri altitudes to the tooltip, it will be in the next version/pre-release. :)

Link to comment
Share on other sites

Is there any way to get data from the persistence file into the trajectory optimiser, barring manually copying orbital elements? I run KSP on Linux and have KSPTOT running in a Windows VM, and can't run both simultaneously (because 4 GB RAM)

Link to comment
Share on other sites

Ok I recreated my aerobrake to Ike encounter - not the same as before but KSP still shows a brief encounter that MA doesn't seem to pick up (at least not automatically - not sure if it's even supposed to). I have the files for you here Arrowstar. "No Ike Encounter" is also my aerobrake drag run - so you'll see me set a new state post aerobrake. "Duna Aerobrake" is where I used the drag coefficient the calculator spat out at me to get results approximate to what I had in the game. Good stuff!

Like the new atmo data addition to the body catalog. I still think, at some point, it'd be cool to be able to adjust the orbital parameter UT value to get updated info for that time.

Played around a bit more with the mission animator and the sliders make things way easier to figure out what the camera is doing. My only bit of feedback for this right now is the two new buttons you added to jump to the beginning and end of the timeline? They should instead jump through mission segments. It's easy enough to drag the slider to the beginning and end, after all. Finding that SOI change tho...

Link to comment
Share on other sites

right-clicking on orbital parameter text boxes should pull up a context menu that includes SFS orbit import

Sweet, thanks.

Slowly getting to grips with Mission Architect. What I'm trying to plan is a departure from Laythe orbit, via a Tylo assist (well, I would accept Vall, but think Tylo's the better target) to get back to Kerbin quicker than would otherwise be the case with my delta-V budget. With bonus fun from my Laythe orbit being about 20 degrees inclined. It's proving dang tricky to figure out, hence turning to KSPTOT in the first place.

Link to comment
Share on other sites

Played around a bit more with the mission animator and the sliders make things way easier to figure out what the camera is doing. My only bit of feedback for this right now is the two new buttons you added to jump to the beginning and end of the timeline? They should instead jump through mission segments. It's easy enough to drag the slider to the beginning and end, after all. Finding that SOI change tho...

Good suggestion, I'll do that. Thanks! :)

Btw, sorry for the delay on v1.1.8, everyone. This weekend was crazy and next is shaping up to be crazy, too. I'll get it out when I can. In the mean time, enjoy 0.25 and the KSPTOT v1.1.8 pre-release I linked to above. :)

EDIT: And KSPTOTConnect seems to be fine with KSP 0.25, but let me know if you find anything.

Edited by Arrowstar
Link to comment
Share on other sites

Hey, just downloaded this and I can tell that I'm going to love it. Considered writing something similar awhile back, but my background on the maths side of things was more than a bit lacking.

A couple quick questions on the multi-flyby tool. I'm assuming this tries to optimize for dV within the given time constraints. Is there a way to specify (or is it already assumed) that I wish to enter orbit at the destination, or will it just get me to the destination without considering dV needed for capture? Or is the intent to just use the multi-flyby output as initial input for the mission architect tool, and then enter constraints there? Also, it looks like you aren't allowed to have the same body set for consecutive waypoints. Is there are particular reason for this? Perhaps there's no good use for it in the Kerbal system, but I know in real life, NASA will sometimes set up trajectories that perform multiple gravity assists around the same body - Cassini, for instance, had two consecutive Venus flybys, as I recall.

Again, great looking tool - can't wait to play around with it more once I can find some free time.

Link to comment
Share on other sites

Hey, just downloaded this and I can tell that I'm going to love it. Considered writing something similar awhile back, but my background on the maths side of things was more than a bit lacking.

Glad you like it! :)

A couple quick questions on the multi-flyby tool. I'm assuming this tries to optimize for dV within the given time constraints. Is there a way to specify (or is it already assumed) that I wish to enter orbit at the destination, or will it just get me to the destination without considering dV needed for capture? Or is the intent to just use the multi-flyby output as initial input for the mission architect tool, and then enter constraints there?

It considers both the delta-v needed to depart and the delta-v needed to "arrive," but the arrival delta-v is more of an approximation because the final orbit isn't known. It's still more than good enough for planning purposes though. :)

And yes, the intent for everything in the maneuver planning tools section is that it ultimately feeds into the Mission Architect. :)

Also, it looks like you aren't allowed to have the same body set for consecutive waypoints. Is there are particular reason for this? Perhaps there's no good use for it in the Kerbal system, but I know in real life, NASA will sometimes set up trajectories that perform multiple gravity assists around the same body - Cassini, for instance, had two consecutive Venus flybys, as I recall.

Yes, the reason is that multi-revolution Lambert solvers are hard. :P A mult-rev Lambert solver solves Lambert's problem while allowing the spacecraft to go around the central body (say, the Sun) N times (N > 0) before arriving at the destination. However, they are much more complex than their single-rev brothers, hence why I didn't implement one. :)

Please let me know if you have any questions. Mission Architect in general can be difficult to learn at first, but I'm happy to help! :)

Link to comment
Share on other sites

I am using the tool with RSS(Real Solar System).

It could work,but it couldn't work well.

Let's see these pictures.

UH6orkY.png

I try to plan a flyby orbit like this. (Kerbin[Earch] => Eve[Venus] => Kerbin[Earch] => Saturn[Dres])

It seems no problems.

But when I try it in Maneuver Sequencer,the results aren't correct.

SvnMLbP.png

Burn Information to Depart Kerbin
---------------------------------------------
Total Delta-V = 13.834 km/s
Prograde Delta-V = -7771.358 m/s
Orbit Normal Delta-V = 11444.292 m/s
Radial Delta-V = -0.000 m/s
---------------------
Burn True Anomaly = 255.975 deg

I think it will only takes 3200~3700 m/s to depart Kerbin[Earch].

And the prograde delta-v is negative,the normal delta-v is too large,I don't think it is correct.

Thank you for your help (and sorry for my bad English).

Link to comment
Share on other sites

Today I tried to get the departure information with RSS again.Here are the pictures.

AayZYAr.pngir1eTQm.png

I just use the "Kerbin Departure Information" instead of "Fyby Maneuver Sequencer".

But the problems are the same as yesterday's. How should I deal with it?

Link to comment
Share on other sites

Can you post your bodies.ini file online somewhere so I can try myself?

I got it by "Create New Bodies File From KSP".Here is the file.


[Sun]
epoch = 0.000000
sma = 0.000000
ecc = 0.000000
inc = 0.000000
raan = 0.000000
arg = 0.000000
mean = 0.000000
gm = 132752533999.999980
radius = 696342.000000
atmoHgt = 700000.000000
rotperiod = 432000.000000
rotini = 0.000000
bodycolor = gray
canBeCentral = 1
canBeArriveDepart = 0
parent =
parentID = -1
name = Sun
id = 0

[Kerbin]
epoch = -31542641.784000
sma = 149494366.257098
ecc = 0.016096
inc = 23.446038
raan = 359.996500
arg = 102.972068
mean = 357.060746
gm = 398600.441800
radius = 6371.000000
atmoHgt = 130.000000
rotperiod = 86164.098904
rotini = 100.183300
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Kerbin
id = 1

[Mun]
epoch = -31542641.784000
sma = 384308.437771
ecc = 0.053281
inc = 28.362678
raan = 2.296616
arg = 199.764093
mean = 222.701235
gm = 4902.800000
radius = 1737.100000
atmoHgt = 0.000000
rotperiod = 2356547.694659
rotini = 25.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 0
parent = Kerbin
parentID = 1
name = Mun
id = 2

[Minmus]
epoch = -31542641.784000
sma = 2866832853.163975
ecc = 0.046207
inc = 23.672570
raan = 1.846090
arg = 169.687679
mean = 286.826736
gm = 5793939.130000
radius = 25559.000000
atmoHgt = 390.000000
rotperiod = 62063.712000
rotini = 230.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Minmus
id = 3

[Moho]
epoch = -31542641.784000
sma = 57908973.645888
ecc = 0.205619
inc = 28.602521
raan = 10.865412
arg = 66.903710
mean = 318.216208
gm = 22038.882800
radius = 2439.700000
atmoHgt = 14.000000
rotperiod = 5067031.680000
rotini = 190.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Moho
id = 4

[Eve]
epoch = -31542641.784000
sma = 108209548.790467
ecc = 0.006810
inc = 24.463976
raan = 7.981603
arg = 123.712129
mean = 311.245995
gm = 324863.624000
radius = 6051.800000
atmoHgt = 350.000000
rotperiod = 20996798.400000
rotini = 0.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Eve
id = 5

[Duna]
epoch = -31542641.784000
sma = 227949699.961976
ecc = 0.093261
inc = 24.692724
raan = 3.351911
arg = 332.102266
mean = 169.391313
gm = 42837.069000
radius = 3380.100000
atmoHgt = 170.000000
rotperiod = 88642.684800
rotini = 90.000000
bodycolor = gray
canBeCentral = 1
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Duna
id = 6

[Ike]
epoch = -31542641.784000
sma = 1883812.366574
ecc = 0.007973
inc = 25.440800
raan = 358.502256
arg = 320.735968
mean = 15.816140
gm = 7180.810212
radius = 2409.300000
atmoHgt = 0.000000
rotperiod = 1443307.267789
rotini = 0.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Ike
id = 7

[Jool]
epoch = -31542641.784000
sma = 778188938.659755
ecc = 0.048727
inc = 23.253133
raan = 3.262077
arg = 10.756428
mean = 302.581240
gm = 126686534.000000
radius = 69911.000000
atmoHgt = 374.000000
rotperiod = 35730.000000
rotini = 0.000000
bodycolor = gray
canBeCentral = 1
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Jool
id = 8

[Laythe]
epoch = -31542641.784000
sma = 1221966.238511
ecc = 0.028919
inc = 6.460493
raan = 126.494523
arg = 182.088677
mean = 75.161174
gm = 8977.864800
radius = 2566.000000
atmoHgt = 600.000000
rotperiod = 1377904.352657
rotini = 90.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 0
parent = Dres
parentID = 15
name = Laythe
id = 9

[Vall]
epoch = -31542641.784000
sma = 5845670624.078222
ecc = 0.246277
inc = 23.612364
raan = 44.360998
arg = 184.494535
mean = 300.129730
gm = 870.957000
radius = 1143.000000
atmoHgt = 0.000000
rotperiod = 551856.672000
rotini = 0.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Vall
id = 10

[Bop]
epoch = -31542641.784000
sma = 9378.492209
ecc = 0.015399
inc = 36.324334
raan = 46.482126
arg = 357.775924
mean = 7.185121
gm = 0.000715
radius = 7.250000
atmoHgt = 0.000000
rotperiod = 27572.079609
rotini = 230.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Duna
parentID = 6
name = Bop
id = 11

[Tylo]
epoch = -31542641.784000
sma = 1070823.468895
ecc = 0.001190
inc = 25.270714
raan = 358.012522
arg = 139.299257
mean = 232.675323
gm = 9890.200600
radius = 2624.100000
atmoHgt = 0.000000
rotperiod = 618549.572135
rotini = 0.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Tylo
id = 12

[Gilly]
epoch = -31542641.784000
sma = 23458.112018
ecc = 0.000329
inc = 38.277370
raan = 47.518936
arg = 263.896387
mean = 323.504034
gm = 0.000099
radius = 5.456000
atmoHgt = 0.000000
rotperiod = 109071.071004
rotini = 5.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Duna
parentID = 6
name = Gilly
id = 13

[Pol]
epoch = -31542641.784000
sma = 422018.294524
ecc = 0.003546
inc = 25.464095
raan = 358.046643
arg = 231.270346
mean = 195.327409
gm = 5961.150060
radius = 1811.300000
atmoHgt = 0.000000
rotperiod = 153038.725670
rotini = 25.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Pol
id = 14

[Dres]
epoch = -31542641.784000
sma = 1424838758.613269
ecc = 0.053472
inc = 22.569923
raan = 5.970845
arg = 85.046612
mean = 67.468852
gm = 37931187.000000
radius = 60268.000000
atmoHgt = 830.000000
rotperiod = 38052.000000
rotini = 25.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Dres
id = 15

[Eeloo]
epoch = -31542641.784000
sma = 671253.637542
ecc = 0.009512
inc = 25.703643
raan = 358.936008
arg = 53.132107
mean = 276.265204
gm = 3203.386520
radius = 1550.800000
atmoHgt = 60.000000
rotperiod = 307000.532419
rotini = 25.000000
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Eeloo
id = 16

Thank you.

Link to comment
Share on other sites

Hello, I am afraid this must be a rather generic question, but I couldn't get it to solve myself, and google didn't help me much either.

I cannot get a network connection. The setup is as follows: win7 laptop that runs KSPTOT, connected via a speedport W724V router. IP 192.168.2.100.

Desktop Ubuntu Linux 64bit running heavily modded KSP (RO, RSS etc.) 192.168.2.101

I disabled the windows firewall, checked that there is no entry in iptables, and put 192.168.2.100-130 in whitelist.

Still I cannot get a connection. When I run KSP on windows on the same computer, I do get a connection once, so that I can download the list of vessels, but the realtime thing then says "no connection".

I looked at the router settings but only found settings related to ports coming from the outside.

Any tipps what I can do? Websites you can point me to?

Thanks a lot!

PS: The tool is awesome. I'll use it anyway, analysing .sfs files. Thank you!

Link to comment
Share on other sites

Hello, I am afraid this must be a rather generic question, but I couldn't get it to solve myself, and google didn't help me much either.

I cannot get a network connection. The setup is as follows: win7 laptop that runs KSPTOT, connected via a speedport W724V router. IP 192.168.2.100.

Desktop Ubuntu Linux 64bit running heavily modded KSP (RO, RSS etc.) 192.168.2.101

I disabled the windows firewall, checked that there is no entry in iptables, and put 192.168.2.100-130 in whitelist.

Still I cannot get a connection. When I run KSP on windows on the same computer, I do get a connection once, so that I can download the list of vessels, but the realtime thing then says "no connection".

I looked at the router settings but only found settings related to ports coming from the outside.

Any tipps what I can do? Websites you can point me to?

Thanks a lot!

PS: The tool is awesome. I'll use it anyway, analysing .sfs files. Thank you!

Hi Lilienthal,

please try to connect and then hit alt+F2 in KSP to view the debug log. Anything suspicious there? If you don't like to mess around with the debug log you can alternatively provide your output_log.txt (KSP-Folder\KSP_Data\output_log.txt) Everything KSP logs goes to that file. So It's a great resource for bugfixing.

Link to comment
Share on other sites

Hi RadarMan,

please try to connect and then hit alt+F2 in KSP to view the debug log. Anything suspicious there? If you don't like to mess around with the debug log you can alternatively provide your output_log.txt (KSP-Folder\KSP_Data\output_log.txt) Everything KSP logs goes to that file. So It's a great resource for bugfixing.

neither Shift-F2, nor Shift-F12, nor KSP.log yield anything suspicious in the logs. I guess it's either some kind of firewall on ubuntu or a problem with my router. Any ideas?

Thanks!

Link to comment
Share on other sites

Hi there, Please help! So um...I downloaded this, installed the matlab thingy, then KSPTOT...but when I try to run it, it doesn't seem to do much. No window comes up. In task manager, I see a process for it, taking a lot of processor time and about 50 mb of ram...but after 10 minutes of this, still nothing comes up. Is it a case of just needing to wait more then 10 minutes, or have I done something wrong? I'm on Windows 7, incase that makes a difference. Hope you can help!

Link to comment
Share on other sites

Hi there, Please help! So um...I downloaded this, installed the matlab thingy, then KSPTOT...but when I try to run it, it doesn't seem to do much. No window comes up. In task manager, I see a process for it, taking a lot of processor time and about 50 mb of ram...but after 10 minutes of this, still nothing comes up. Is it a case of just needing to wait more then 10 minutes, or have I done something wrong? I'm on Windows 7, incase that makes a difference. Hope you can help!

Restart your computer, that fixed it for me and I got Arrowstar to add it to the install instructions. In bold :P

Link to comment
Share on other sites

@ KingofDerby: not that the description of your issue allows to clearly see what it is about, but that sounds like there is a component called by KSPTOT or MATLAB that is not allowed to run on your system, and that makes the calling process to hang. It could be you did not allow something to run when your firewall (or security suite) asked about. One such thing could be Java, MATLAB requires a number of Java dlls. Can't tell exactly what it is however, when I have KSPTOT running there are well over 100 different dlls open related to its process, any of them missing could bring to the hang (though I would expect at least MATLAB to prompt an error in case) and trying to troubleshoot that way would be close to impossible. But if that was the problem, you may try to disabe your firewall/security suite and see if KSPTOT can start that way.

Please note also, I often experience a failed start with MATLAB the first time after a clean boot, but never the second time, so in case do restart KSPTOT twice in a row.

If neither works, I would consider an install error, in case would trash both MATLAB and KSPTOT from the system and repeat the install process.

Link to comment
Share on other sites

Ok, got home, restarted, after 5 mins, got an error code (not got one before, and had waited longer then that previously!)

Error is...(Programpathblahblah) This application has requested the Runtime to terminate it in an unusual way.

Diomedea, now I've seen your message, disable security, then I'll restart twice in a row, and see what that does. Unfortunately, apart from the error I just got, I've never had anything come up.

Link to comment
Share on other sites

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...