Jump to content


  • Posts

  • Joined

  • Last visited


1,167 Excellent


Contact Methods

Profile Information

  • About me

Recent Profile Visitors

6,996 profile views
  1. Unfortunately it is not, unless you begin using a faster CPU. I could look into those changes. Thanks for bringing them to my attention! Sure! You'll need the parallel computing toolbox, optimization toolbox, global optimization toolbox, instrument control toolbox, and robotics toolbox. Those are the ones I can think of off the top of my head. I can check later (might be next week) to find out for sure. Sorry for the super late replies everyone, apparently my setting to follow this thread got turned off at some point and I didn't notice it. I've re-enabled it for the future.
  2. KSPTOT author here. Thanks for the shoutout! Yes, KSPTOT can handle RSS solar systems if you feed it the celestial body information it needs to understand the RSS solar system. After that, it's just a matter of designing your tour using the Multi-flyby Maneuver Sequencer tool. Let me know if you have any questions, OP. You can post them over on the KSPTOT forum thread.
  3. Is anyone aware of either (1) any bugs in any of the previous pre-releases I've put out, or (2) any features that they might need but are otherwise not already in KSPTOT (particularly but not limited to LVD)?
  4. Hey there! Check out my KSP Trajectory Optimization Tool for use in generating porkchop plots. You can generate the file describing the OMP solar system easily from within KSPTOT, as well, and everything should "just work" at that point. Let me know if you have any questions!
  5. Hi everyone, Tonight I've built KSPTOT v1.5.9 pre-release 5. There are a lot of nice usability improvements and bug fixes in this one. Here's the change log: LVD: Added a camera controls UI to the View menu. Use this to pan, zoom, and rotate your camera view more effectively. LVD: Added the options dialog for the Second Order propagator. LVD: Tooltip for the warning/error labels is custom and now shows the proper width so everything that is meant to be on one line is actually on one line. Fixed bug in main UI options dialog. LVD: The tool tip string on the time slider text now shows the proper events. A few performance improvements. Please let me know if you find any bugs! Thanks and happy orbiting!
  6. I probably duplicated them accidentally when I was creating the tutorial for you. Delete the duplicated constraints, they are not necessary. This is actually coming soon in the next pre-release. I just haven't had time to get the PR pushed out, but yes, I know that it would be nice! Ahhh, this feature I described might actually not have made it into the last pre-release either. Okay, that would be my mistake if that's true. Well anyway, I'm glad you figured out how to add the constraint scale factors in there! Yes, that's what I meant. Thanks for figuring it out! It was getting late by the end of my tutorial and I missed that step. Thanks! I'm glad everything is working as it should now. Please let me know if you have any more questions!
  7. It's a guess. For an orbit to be hyperbolic (which it will be coming from outside the SoI), C3 must be strictly greater than 1. That's why I set the bounds on C3 to 1.001 and 20. Most hyperbolic C3 values show up in the single digit range so 20 is a safe guess for an upper bound. The actual value of 5.0 km^2/s^2 is just a guess that the optimizer will change as needed. The transfer duration for this trajectory is about 250 Earth days. Half of that is 125 Earth days, or 10800000 seconds. The bounds are just half of that and double that value, for lower and upper bounds respectively. I selected these bounds somewhat arbitrarily and they're also just mostly a guess. Good questions! Let me know if you have more.
  8. Hey sure! I know that LVD can be a bit more challenging to use because, as you said, it does have a ton of options. This is what makes it super powerful, but I do realize that it increases the learning curve a bit (or a lot lol). For what it's worth, I've done a decent job (IMHO) of picking decent default options for things, so usually you don't have to get down in the weeds unless you really want to. Here's how I would go about your Kerbin to Jool mission. Please grab the most recent pre-release of KSPTOT before starting. The general plan is this. We're going to create the initial Kerbin orbit state, then propagate in Kerbin orbit for a bit, use an impulsive delta-v to send us on our way, and then propagate forwards in time to a point about halfway between Kerbin and Jool. The magic then happens next: we are going to jump forwards in time to the Jool periapsis point and then propagate backwards in time to that same half-way point in space. We'll constrain our mission to make these points have the same time, position, and velocity, and we'll maximize the spacecraft mass at the end of the mission at the same time. Use the porkchop plot in the main KSPTOT UI to figure out when to depart Kerbin and arrive at Jool. I found 4291060.8566 sec UT and 25862156.6544 sec UT for those times, respectively. Then tap the Compute Departure button and get your departure delta-v. I got 1800 m/s prograde, 1541 m/s normal, and 256 m/s radial DV. Open LVD. Open up the Initial State dialog (Scenario -> Edit Initial State). Set the Frame Type to Body Centered Inertial. Click Frame Options and select Kerbin as the center of the frame. Set the Epoch to 4291060.8566 seconds. Click the "Opt?" checkbox and then in the first (left, lower bound) textbox enter 4291060.8566/2. Enter 4291060.8566*2 in the right (upper bound) textbox. You'll see that the textbox automatically does the math and evaluates those expressions to the numbers they work out to be, so that's normal. Set your departure orbit to whatever you would like. I used a circular orbit at an SMA of 700 km, but whatever you need is what you can do. Save and close the initial state dialog box. It's time to make our first three events to depart Kerbin: Event 1: Tap the Insert Sequential Event button on the main LVD UI. The Edit Event dialog box appears. Name the event "Coast to Departure DV". Open the Termination Condition dialog box. Enter 2000 seconds into the Event Duration line, check the "Opt?"box, and then 1000 seconds and 3000 seconds into the lower and upper bound textboxes. Save and Close. Save and Close the Edit Event dialog box. Event 2: Tap the Insert Sequential Event button on the main LVD UI. The Edit Event dialog box appears. Name the event "Departure DV". Leave the event termination condition at 0.000 seconds. Click the Add Action button and select "Add Impulsive Delta-v". A dialog box appears. Select the Orbit Frame (NTW) in the delta-v frame. Enter in your delta-vs from the Compute Departure tool into the three left textboxes. Check the three "Opt?" checkboxes. Enter 0 and 5000 for the lower and upper prograde bounds, -2000 and 2000 for normal bounds, and -1000 and 1000 for the radial bounds. Save and close. Save and close the event. Event 3: Tap the Insert Sequential Event button on the main LVD UI. The Edit Event dialog box appears. Name the event "Coast to Jool (+)". The "+" tells me that the event is propagating forwards in time. Tap the termination conditions button again. Enter "10800000.0" seconds into the event duration box, check the "Opt?" box, and then "10800000.0/2" into the left (lower bound) textbox and "10800000.0*2" into the right (upper bound) text box. Save and close. Make sure "Forward Propagation in Time" in selected in the lower right, and "Consider SoI Transitions" is checked. Save and close the event box. Now that we've created the events propagating away from Kerbin, it's time to create the next two that propagate backwards in time from Jool. This is a radical idea but you'll see how powerful it can be, and it's something you could not do in MA at all. Event 4: Tap the Insert Sequential Event button on the main LVD UI. The Edit Event dialog box appears. Title the event "Jool Periapsis State". Set the plotting type from Plot Continuous to Skip First State (three lines below the name). Tap Add Action and select "Set Kinematic State". The dialog box appears. On the Time Tab: Enter 25862156.6544 seconds, check the Opt? box, and then enter "25862156.6544/2" for the lower bound and "25862156.6544*2" for the upper bound. On the Orbit State tab: Set the Element Set to Universal Orbit Elements. Set the Frame Type to Body Centered Inertial. Set the Frame Options to Jool. Set your initial C3 to 5 km^2/s^2, check the Opt? box, and set your lower and upper bounds to 1.0001 and 20.0. Set your radius of periapsis to 7000 km. You can actually use whatever here so long as it's above the atmosphere of Jool, 6200 km. Set your inclination to 0 deg, check Opt?, and set bounds to 0 deg and 180 deg lower and upper respectively. Set RAAN to 0 deg, check Opt?, set bounds to -360 and 360 deg. Set arg peri to 0 deg, check Opt?, set bounds to -360 and 360 deg. Set time past peri to 0 seconds and DO NOT check the Opt? box. Save and close the Edit Action dialog box. Save and Close the event box. Event 5: Tap the Insert Sequential Event button on the main LVD UI. The Edit Event dialog box appears. Call the event "Coast to Jool (-)". The "-" means we are going to propagate backwards in time to me. Open up the termination conditions box. Set the event duration to 10800000 seconds, check the Opt? box, and set the lower and upper bounds to 6480000.0 seconds and 25920000.0 seconds, respectively. Save and close. Set the propagation direction drop down menu to "Backwards Propagation in Time" in the lower right. This is very important! Save and close the event dialog box. The next step is to create constraints for the optimizer that will make the trajectory continuous. To do this, right click the Sequential Events list, and select Create Continuity Constraints option. A dialog box appears. Make the first event Event 5 ("Coast to Jool (-)") and the second event Event 3 ("Coast to Jool (+)"). Select the Time, Position, and Velocity checkboxes. For time, set the scale factor to 10000000 seconds. For position, set the scale factor to 100000000 km. For velocity, set the scale factor to 10 km/s. Save and close. You should get a dialog box with a green checkbox saying constraints were created. Now we just need to create an objective function to minimize fuel usage. On the main LVD UI, Optimization -> Edit Objective Function. Click the Add Obj. Function button. Select the event to be Event 4, the Jool Periapsis State. Set the Scale Factor to be 10. Set the Optimization Type to be Maximize. Save and Close. Now we just optimize the mission! Optimization -> Optimize Mission. This should, in theory, end with all constraints satisfied and a decent objective function value. If you would like to see how I set up your mission, go ahead and load this MAT file into LVD. If you want to keep going in Jool orbit, keep adding events in the order I described above. First propagate forwards in time, then use a Set Kinematic State action to jump to the next periapsis point or other point in space, and then propagate back in time to meet up in the middle of empty space with continuity constraints. Let me know if you need any help! I'm happy to.
  9. Can you check your KSP and KSPTOT log files to see if any errors show up when you push the Create Bodies File menu?
  10. Yes! If you set your inclination, RAAN, and argument to match those in the departure orbit, your departure delta-v should drop considerably.
  11. Hi everyone, Tonight I've built KSPTOT v1.6.9 pre-release 4. Here's the change log: LVD: Added functionality to the script event list right click context to convert Add Impulsive Delta-V actions to finite burns. LVD: Final and initial spacecraft state displays now show earliest and latest state and not first and last state in state log. LVD: Added new UI to fine-tune creating continuity constraints. LVD: Added gravity only RKN1210 high precision integrator. LVD: There should be a 5%-10% performance increase when running scripts for most scenarios, especially those that make use of 3rd body gravity. All single UI apps (MFMS, RMS, etc) now display their central body spheres with the texture and not the colormap, if available. A few misc bug fixes. As always, please let me know if you find any bugs or have any questions! Happy orbiting!
  12. Okay so at this point, when you open up LVD, what works and what doesn't? Do any of the other tools in KSPTOT exhibit any issues?
  13. I wasn't able to reproduce this on my Linux VM. Can you try closing KSPTOT entirely and then reopening it. Immediately go to LVD and then the Halo Orbit Constructor tool. Do you still get the error? Evidently there's a limitation in Linux MATLAB where you can't change the OpenGL rendering method on Linux systems during runtime like you can in Windows. For now, just leave that setting where it is. If that doesn't work for you, then I'm guessing it could be the OpenGL stuff on your system. Investigate into that, and keep me in the loop as far as error messages you get go. I can help investigate them.
  14. As far as the solar system goes, yes, you can import exactly what's in KSP. You'll need to have the KSPTOTConnect plugin installed in the Gamedata folder (it ships with KSPTOT). Then just open up to the Flight Scene (basically, a rocket on the launch pad or in space) and then in KSPTOT, on the main UI, use the File Menu -> Create New Bodies File from KSP. Follow the prompts. As far as time goes, KSPTOT uses "universal time" under the hood for everything. So the year/day/hour/minute/second equivalent times might not be correct, but the UT will be because that's how KSP does it internally too. Yes, it's definitely possible in KSP and you can definitely model it in KSPTOT. Start with finding your flyby sequence in Multi-Flyby Maneuver Sequencer (MFMS). After that, you can export your trajectory to a binary file in MFMS and import it to Launch Vehicle Designer (LVD). You'll need the latest v1.6.9 pre-release 3 for this functionality (see above). Once you do that, you can optimize the trajectory to your heart's content and model the various tanks, engines, and dry mass on your vehicle (plus a bunch of other things!). Let me know if you have questions when you get to this point. Any other questions? I'm happy to answer any you have.
  15. Okay, thanks! So I'm actually going to encourage you to work with Launch Vehicle Designer instead of Mission Architect. LVD is basically everything I had hoped to make MA and a lot more. It's just a far more powerful tool, and while the learning curve is a bit steeper, it's way, way more powerful. You're welcome to post questions here and I'll do my best to help if you'd like. Anyway, glad it's working now!
  • Create New...