Jump to content

Arrowstar

Members
  • Posts

    2,549
  • Joined

  • Last visited

Posts posted by Arrowstar

  1. 1 minute ago, Nazalassa said:

    Nah, it literally just said "Installing... Finished."

    In the meantime I checked my HD, nothing named "MATLAB" or "R2022a", except the unzipped directory in ~/Downloads.

    Does anything in this conversation help?

    https://www.mathworks.com/matlabcentral/answers/229857-why-do-i-see-preparing-installation-files-installing-finished-in-the-terminal-window-wh

  2. 2 hours ago, Nazalassa said:

    I have a small issue installing the MATLAB runtime library on Linux: running ./install (with and without root privileges) from the unzipped MATLAB directory (as written in the OP) does nothing, I tried plenty of things, none worked... And copy-pasting the files to /usr/local/MATLAB/R2022a/ doesn't work, either. Maybe there's an issue with the download link?

    Apparently, running ./install is supposed to bring an installer window, but when I tried the window disappeared as soon as it appeared every time.

    Using   -agreeToLicense yes -destinationFolder /usr/local/MATLAB/R2022a -mode silent   yields nothing.

    P.S. I like the current icon better :)

    Do you get any error messages in the terminal window?

    3 hours ago, RaceToTheMun said:

    any indepth tutorial on how to do a multi fly bys 

    There isn't really, but the general idea with using Multi-Flyby Maneuver Sequencer is:

    1. Select your minimum and maximum launch bounds
    2. Set your waypoints, starting from your departure planets and ending with your final body you want to go to.  The middle bodies will be used for gravity assists.
    3. Set your initial orbit around the first waypoint body.
    4. Push the compute button.

    Let me know if you have any particular questions!

  3. Hey everyone, I've got some more news regarding visual changes to KSPTOT.  The other day I decided I was finally interested enough in adding a dark mode for the software, so I created what I call "visual themes".  These are user definable sets of colors applied to most UI elements that make up the KSPTOT GUI windows.  Going forward, KSPTOT will ship with two themes by default: the typical light theme and a dark theme.  However, there's nothing stopping you from using the Theme Editor to make your own. 

    You can access the Theme Editor from the main KSPTOT GUI (View -> Edit Themes).  It looks like this.

    yfGqXn0.png

    Every type of editable widget has its own tab where you can set colors.  (In the future, I could also do fonts, but I'm leaving that out for now.)  An example representation of a GUI with the selected theme as currently defined is shown on the bottom of the window.  Here's I've got a "blue theme" defined, but there's nothing stopping you from going all unicorn vomit rainbows if you really want, haha.

    You can select and apply a theme by double clicking on the theme in the list box on the left or by checking the Active Theme checkbox at the top of the UI.  The effects take place across every KSPTOT UI instantaneously.

    I think Launch Vehicle Designer looks particularly good in a dark theme, but all tools and windows have this functionality.

    payZQHR.png

    Let me know what you think!

  4. 2 minutes ago, AVaughan said:

    I prefer the first one.   (With the disclaimer that I am just from viewing the full scale images.  I'm not sure whether/how much the rescale to 50x50 would affect that).

    But ultimately it is your project Arrowstar, so pick whichever one you think is better.

    Thanks!  You bring up a great point.  Here's what they would look like at 50 px x 50 px, which would be their approximate size as an icon.

    A) 367xrpp.png

    B) DSUQXf1.png

    C) YZmVgwv.png

    D) vUq7n11.png

    I should have shared these as well. :)

  5. Hey guys, I've been thinking about changing KSPTOT's logo for a little bit now and I wanted to ask your opinions.  I've been playing with Midjourney, the AI image generator, and it's come up with some pretty cool ideas for me.  Out of about 30 or so images, I've narrowed down the ones I really like to these four and I was wondering if you all had a preference.  "Keep the original logo" is also a preference too!

    Keep in mind these have to be shown at ~50 px square and that they will have transparent backgrounds, not white or grey.

    A) Da9MWHa.png

    B) 1mCVLrm.png

    C) EKViisc.png

    D) hX2uTqk.png

    What do you think?

  6. Hi everyone,

    Just wanted to share some news regarding the next pre-release of KSPTOT, whenever it is that I decide to build that.  First, KSPTOT will be moving to MATLAB MATLAB R2023a as of the next PR.  This is primarily because there's a free 5%-10% performance increase that comes with this next version just about everywhere in KSPTOT, and I'd like you all (and me!) to be able to take advantage of it. 

    Second, Launch Vehicle Designer (LVD) will be getting a slight appearance overhaul in a few ways as of the next pre-release.

    1. There is now an option to display the color of sequential events as the text color in the listbox for easier identification of which event is which on the display.  The listbox background automatically adjusts to a tone of grey that best displays those colors.
    2. The warning and alerts area now has a new look that I think will be slightly less clunky and hopefully easier to read.
    3. There's a new option to completely get rid of the rulers and grids in the display area when you render the orbit.  You can now display or not the Axes box in your View Profiles.  (View -> Edit View Settings)

    When all is said and done, here's what you end up with.  Let me know what you think!

    hXYCEea.png

  7. 6 hours ago, Gotmachine said:

    Don't remember and I'm too lazy to check :P
    I would suggest doing a github search for "
    UpdateFromStateVectors", that should give you plenty of examples of how it should be used.

    So I've given this a go, and all that happens when I execute the is the spacecraft twitches a bit.  It's like the orbit gets set and then is immediately reversed.  I'm not sure what to do about it.  Any ideas?

    See 0:09 of this video for an example of what I mean. Sorry for all the dinging sounds.

    https://vimeo.com/manage/videos/809574842/

  8. Hello! 

    I'm trying to figure out how to programmatically set the position and velocity of a spacecraft.  Say I want to locate the vehicle at 0 deg latitude, 0 deg longitude, and at some altitude.  I want my velocity vector to be due north.  How can I achieve this?  Here's what I have so far, but it doesn't seem to work.   Any help would be appreciated!
     

                double ut = Planetarium.GetUniversalTime();
                CelestialBody cb = this.vessel.orbit.referenceBody;
                Planetarium.CelestialFrame cbFrame = cb.BodyFrame;
                Vector3d pos = cb.GetWorldSurfacePosition(0, 0, 501000);
    
                this.vessel.SetPosition(pos);
    
                Vector3 CoM = vessel.localCoM;
                Vector3d up = (CoM - vessel.mainBody.position).normalized;
                Vector3d north = Vector3d.Exclude(up, (vessel.mainBody.position + vessel.mainBody.transform.up * (float)vessel.mainBody.Radius) - CoM).normalized;
                this.vessel.SetWorldVelocity(north * 100);
    
                this.vessel.UpdatePosVel();

    Thoughts?  Thank you!

  9. Hey Nate!

    There's a small but hardworking subset of the KSP modding community that develops external tools to help users perform spacecraft and launch vehicle mission design.  While I might have one of the longest running mods out there in this regard (KSPTOT), I'm definitely not the only one.  One of the big issues I've run into with developing with KSP 1 in mind that the developers never provided any insight into how they model forces and torques on the vehicles.

    Given this, what are your thoughts on:

    • Providing a KSP 2 "theory manual" that contains information regarding the math models you all have developed and implemented in KSP 2?
      • Especially important here are force model definitions and atmospheric model definitions.
    • Providing API documentation that includes units, relevant reference frame definitions, and data type/dimensions where appropriate?

    Let me give you an example as to why I would love to see this in KSP 2.  Right now I'm trying to reverse engineer how KSP 1 computes lift forces on a rocket so that I can write a plugin to generate lift coefficient databases for a given vehicle.  This is extremely painful in KSP 1, because A) there's no documentation and B) there's no definitions for anything.  I'm basically having to rely on what other modders have figured out before me, but some of it is out of date, etc.  Providing the KSP community with those two bulleted items would go a long way to helping us out!

    Thanks for all the fun so far, looking forward to what KSP 2 has to bring in the future!

  10. 5 hours ago, Gilph said:

    Good Morning,

    Getting closer. I was able to make a bodies file (the fclose warning occured when I did that), but the import into the 2 burn orbit change still throws the error.

    FYI: I don't need the new PR functionality, 1.6.9 works for my use. This is not time sensitive for me, so there is no urgency on my part.  Are you able to reproduce?

     

      Hide contents

    ========================================
      _  __ _____ _____ _______ ____ _______ 
     | |/ // ____|  __ \__   __/ __ \__   __|
     | ' /| (___ | |__) | | | | |  | | | | 
     |  <  \___ \|  ___/  | | | |  | | | | 
     | . \ ____) | |      | | | |__| | | |  
     |_|\_\_____/|_|      |_|  \____/  |_|  
    ========================================
    KSPTOT v1.6.10 PR4
    MATLAB 9.12.0.1956245 (R2022a) Update 2
    DATE: 2023/03/17 07:44:34
    ========================================
    Warning: The fclose method does not close the connection. Instead, clear the interface object to close the connection.
    Read doubles from KSPTOT Connect failed: Write to KSPTOT Connect failed: Expected input number 2, data, to be nonempty.
        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\writeDataToKSPTOTConnect.m'
        name: 'writeDataToKSPTOTConnect'
        line: 50

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\readDoublesFromKSPTOTConnect.m'
        name: 'readDoublesFromKSPTOTConnect'
        line: 46

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\getSingularOrbitFromKSPTOTConnect.m'
        name: 'getSingularOrbitFromKSPTOTConnect'
        line: 11

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack.m'
        name: 'orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack'
        line: 4

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\kspTOT_SingleUIs\OptimalTwoBurnOrpoodleange_App.mlapp'
        name: 'OptimalTwoBurnOrpoodleange_App.getOrbitFromKSPActiveVesselMenu_Callback'
        line: 877

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+appdesigner\+internal\+service\AppManagementService.m'
        name: 'AppManagementService.executeCallback'
        line: 138

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+matlab\+apps\AppBase.m'
        name: '@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)'
        line: 63

    Index exceeds the number of array elements. Index must not exceed 0.

    Error in getSingularOrbitFromKSPTOTConnect (line 16)

    Error in orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack (line 4)

    Error in OptimalTwoBurnOrpoodleange_App/getOrbitFromKSPActiveVesselMenu_Callback (line 877)

    Error in appdesigner.internal.service.AppManagementService/executeCallback (line 138)

    Error in matlab.apps.AppBase>@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 63)

    Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent
    Error while evaluating Menu Callback.
     

     

    I ended up reverting some files back to a late 2022 state and I think that's resolved it.  Give it one more go for me.

  11. 46 minutes ago, Gilph said:

    The warnings went away, but the same errors seem to be there. I tries to create a bodies file and it was not successful either

    Edit1: I just tested with 1.6.9 standard release and all looks good.

      Reveal hidden contents

    KSPTOT v1.6.10 PR4
    MATLAB 9.12.0.1956245 (R2022a) Update 2
    DATE: 2023/03/16 22:18:01
    ========================================
    Read doubles from KSPTOT Connect failed: Write to KSPTOT Connect failed: Expected input number 2, data, to be nonempty.
        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\writeDataToKSPTOTConnect.m'
        name: 'writeDataToKSPTOTConnect'
        line: 50

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\readDoublesFromKSPTOTConnect.m'
        name: 'readDoublesFromKSPTOTConnect'
        line: 46

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\getBodiesINIFileFromKSP.m'
        name: 'getBodiesINIFileFromKSP'
        line: 8

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\kspTOT_SingleUIs\mainGUI_App.mlapp'
        name: 'mainGUI_App.createNewBodiesFileFromKSP_Callback'
        line: 321

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+appdesigner\+internal\+service\AppManagementService.m'
        name: 'AppManagementService.executeCallback'
        line: 138

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+matlab\+apps\AppBase.m'
        name: '@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)'
        line: 63

    Read doubles from KSPTOT Connect failed: Write to KSPTOT Connect failed: Expected input number 2, data, to be nonempty.
        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\writeDataToKSPTOTConnect.m'
        name: 'writeDataToKSPTOTConnect'
        line: 50

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\readDoublesFromKSPTOTConnect.m'
        name: 'readDoublesFromKSPTOTConnect'
        line: 46

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\getSingularOrbitFromKSPTOTConnect.m'
        name: 'getSingularOrbitFromKSPTOTConnect'
        line: 11

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack.m'
        name: 'orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack'
        line: 4

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\kspTOT_SingleUIs\OptimalTwoBurnOrpoodleange_App.mlapp'
        name: 'OptimalTwoBurnOrpoodleange_App.getOrbitFromKSPActiveVesselMenu_Callback'
        line: 877

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+appdesigner\+internal\+service\AppManagementService.m'
        name: 'AppManagementService.executeCallback'
        line: 138

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+matlab\+apps\AppBase.m'
        name: '@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)'
        line: 63

    Index exceeds the number of array elements. Index must not exceed 0.

    Error in getSingularOrbitFromKSPTOTConnect (line 16)

    Error in orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack (line 4)

    Error in OptimalTwoBurnOrpoodleange_App/getOrbitFromKSPActiveVesselMenu_Callback (line 877)

    Error in appdesigner.internal.service.AppManagementService/executeCallback (line 138)

    Error in matlab.apps.AppBase>@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 63)

    Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent
    Error while evaluating Menu Callback.
     

     

    Alright, go ahead and redownload the PR4 package once more.  I think I've got it figured out.  I honestly have no idea why this broke all of a sudden though.  Something changed here though at some point.  Hopefully these changes fix the issue.

  12. 8 minutes ago, Gilph said:

    Still errors, but slightly different. Trying to load orbit into the 2 burn orbit change tool

      Hide contents

    SPTOT v1.6.10 PR4
    MATLAB 9.12.0.1956245 (R2022a) Update 2
    DATE: 2023/03/16 19:18:06
    ========================================
    Warning: ReadAsyncMode is not a valid property for this interface.
    Warning: ReadAsyncMode is not a valid property for this interface.
    Read doubles from KSPTOT Connect failed: Write to KSPTOT Connect failed: Expected input number 2, data, to be nonempty.
        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\writeDataToKSPTOTConnect.m'
        name: 'writeDataToKSPTOTConnect'
        line: 49

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\ksptot_connect\readDoublesFromKSPTOTConnect.m'
        name: 'readDoublesFromKSPTOTConnect'
        line: 46

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\getSingularOrbitFromKSPTOTConnect.m'
        name: 'getSingularOrbitFromKSPTOTConnect'
        line: 11

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\helper_methods\gui_setup\orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack.m'
        name: 'orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack'
        line: 4

        file: 'C:\Users\me\AppData\Local\Temp\me\mcrCache9.12\KSPTra1\KSPTrajector\kspTOT_SingleUIs\OptimalTwoBurnOrpoodleange_App.mlapp'
        name: 'OptimalTwoBurnOrpoodleange_App.getOrbitFromKSPActiveVesselMenu_Callback'
        line: 877

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+appdesigner\+internal\+service\AppManagementService.m'
        name: 'AppManagementService.executeCallback'
        line: 138

        file: 'D:\MATLAB Runtime\v912\mcr\toolbox\matlab\appdesigner\appdesigner\runtime\+matlab\+apps\AppBase.m'
        name: '@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)'
        line: 63

    Index exceeds the number of array elements. Index must not exceed 0.

    Error in getSingularOrbitFromKSPTOTConnect (line 16)

    Error in orbitPanelGetOrbitFromKSPTOTConnectActiveVesselCallBack (line 4)

    Error in OptimalTwoBurnOrpoodleange_App/getOrbitFromKSPActiveVesselMenu_Callback (line 877)

    Error in appdesigner.internal.service.AppManagementService/executeCallback (line 138)

    Error in matlab.apps.AppBase>@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 63)

    Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent
    Error while evaluating Menu Callback.
     

     

    Thanks for the note.  That looks like just a warning, so you should still be able to upload a maneuver properly.  Does it not work for you? 

    Regardless, I've got it fixed and I'll upload a new verison of PR4 here soon.

  13. Title says it all.  I've got a very low Munar orbit that has a periapsis below the terrain, but it's not being detected as a crash yet.  See email.

     

    4WfLjTP.png

    By the way, the issue with the orbit periapsis and apoapsis changing is still not fixed.  Periapsis goes down, apoapsis goes up.  Looks like an integrator issue to me, but I can't be sure.

  14. Hi everyone!

    Tonight I've built KSPTOT v1.6.10 pre-release 4.  Here's the change log:

    • LVD: Implemented ability to only plot certain events in the View Profiles.
    • LVD: Events are now numbered in the listbox string with equal number of digits for each event. Also frozen events now get a snowflake symbol instead of **.
    • LVD: Added DERIVEst method for computing gradients and Jacobians.
    • LVD: Fixed bug with getPositOfBodyWRTSun()
    • LVD: Update NOMAD 4 mex  that allows for parallel processing while optimizing.
    • Lots and lots of bug fixes, mostly within LVD.

    @Gilph, there should be a fix in there for the bug you described.  Let me know if it worked or not.

    As always, if you find any bugs, please let me know!  Happy orbiting. :)

     

  15. 1 hour ago, PentaSteve said:

    I am trying to run this on Linux but I keep getting an error message whenever I try to start it.

    Here is the error:

    MathWorks::System::IUserException in WebControllerFactory::create(): [Error using matlab.internal.cef.webwindow
    MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 127
    
    Error in matlab.internal.webwindow/createImplementation (line 315)
    
    Error in matlab.internal.webwindow (line 163)
    
    Error in matlab.ui.internal.controller.platformhost.CEFFigurePlatformHost/createView (line 65)
    
    Error in matlab.ui.internal.controller.FigureController/createView (line 500)
    
    Error in matlab.ui.internal.componentframework.WebComponentController/add (line 87)
    
    Error in matlab.ui.internal.controller.WebCanvasContainerController/add (line 43)
    
    Error in matlab.ui.internal.componentframework.WebControllerFactory/create (line 94)
    
    Error in projectMain (line 43)]

    Any idea what might be causing this or what I might be able to do to solve this issue?

    Take a look at the Workaround section of this page.  Some of the comments may also have fixes you can try.  Substitute any reference to the MATLAB install directory with the MCR directory.

    https://www.mathworks.com/matlabcentral/answers/397138-why-do-i-get-a-matlabwindow-application-failed-to-launch-error-when-launching-live-editor-app-des

  16. 10 minutes ago, Makrom said:

    I already did that with the previous pic, there you can see the trajectory as it results with the parameters provided by LVD, there s only 1 burn, principia predictions are very accurate, so there´s no need to do the burn.

    I agree with you that there is a problem with the timing, that´s what I have seen from the beginning of this post, but, afaik, I just put the parameters provided by LVD into principia, with the results already known.

    Okay, how about this.  Can you give me orbital elements for the vehicle immediately before and after the Kerbin departure burn when you execute it in KSP?

×
×
  • Create New...