Jump to content

vitorboschi

Members
  • Posts

    94
  • Joined

  • Last visited

Reputation

17 Good

Profile Information

  • About me
    Bottle Rocketeer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Arrowstar Thanks! I've seen this error log being generated when I try to add the "Set Kinematic State" event, which might be related to it not being added to the list afterwards: Nonfinite endpoints or increment for colon operator in index. Error in lvd_EditActionSetKinematicStateGUI_App/populateGUI (line 284) Error in lvd_EditActionSetKinematicStateGUI_App/lvd_EditActionSetKinematicStateGUI_OpeningFcn (line 1357) Error in lvd_EditActionSetKinematicStateGUI_App>@(app)lvd_EditActionSetKinematicStateGUI_OpeningFcn(app,varargin{:}) (line 4540) Error in appdesigner.internal.service.AppManagementService/runStartupFcn (line 103) Error in matlab.apps.AppBase/runStartupFcn (line 69) Error in lvd_EditActionSetKinematicStateGUI_App (line 4540) Error in SetKinematicStateAction.openEditActionUI (line 443) Error in lvd_editEventGUI_App/addActionButton_Callback (line 427) 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 in matlab.ui.internal.controller.uicontrol.UicontrolRedirectStrategy/executeCallback (line 231) Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy/handleCallbackFired (line 13) Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy>@(varargin)obj.handleCallbackFired(varargin{:}) (line 19) Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback Error while evaluating Button PrivateButtonPushedFcn. Another, unrelated bug: When I try to optimize this LVD mission, I get: Error using optimfcnchk/checkfun Supplied function '@(x)lvdOpt.constraints.evalConstraintsWithGradients(x,true,evtToStartScriptExecAt,true,[])' returned NaN when evaluated; FMINCON cannot continue. Error in fmincon (line 672) Error in lvd_executeOptimProblem (line 30) Error in FminconOptimizer/optimize (line 106) Error in LvdOptimization/optimize (line 62) Error in ma_LvdMainGUI_App/optimizeMissionMenu_Callback (line 2865) 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) Caused by: Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue. Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent Error while evaluating Menu Callback.
  2. @Arrowstar a few more bugs on the LVD: - In some cases, while a chart manipulation tool is active (Pan, rotate, zoom...), you cannot properly interact with the events list: double clicking an event will not open the edit window, and right-clicking will open a menu with chart options rather than the usual event popup menu. - When inserting a "Set kinematic state" action, I cannot set the epoch using the date/time editor. When I choose that option, the editor will appear, but when I click "Ok", the time is not set. Instead, the console will show this error: Error using matlab.ui.control.EditField/set Unrecognized property String for class EditField. Error in lvd_EditActionSetKinematicStateGUI_App/enterUTAsDateTimeContextMenu_Callback (line 1536) 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. - Also when inserting the "Set kinematic state" action, in some cases it will not appear at the list after I change the settings and click "Save & Close". I couldn't find the exact steps to reproduce this one yet, but will report once I do. - I noticed the initial state doesn't always match what I set as the scenario initial state (see image for ref) . Is that expected?
  3. @Arrowstar I've found a bug with LVD's node upload feature: it seems to always set the node execution to the end time of the event, even when it was set to execute the actions before propagation.
  4. Thanks for the answers! What's the best way to do this? Simply changing/optimizing the Epoch field of the initial state would change the orbit, no? That's not desirable in my case because the rocket is already in a parking orbit. Scratch that. I realized I asked the same question a year or two ago. Cool! I kinda expected it should be allowed, but since the MFMS mission importer stay with the force model propagator, I was a bit wary about changing it
  5. Hey @Arrowstar, long time no see! I'm a returning user after quite some time away from KSP (and KSP-TOT) and was quite happy to see the amount of features/polishing you put into the tool.While trying to [re]learn the tool, I'm modelling a simple mission to Duna starting from a parking orbit. I just imported a mission from the MFMS and tweaked it to for my needs (I want the ship to enter a polar orbit at Duna), but there are some problems which might be bugs or just me not knowing how to use the tool. Here's the LVD mission for reference. Now the problems: - When I change the event 1 from Two body propagator to the Force model propagator, the orbit seems to decay to the ground, even though there shouldn't be any thrust/drag to the ship at that orbit - Propagating it takes less than 5 seconds, but actually optimizing it is *very* slow. It can take multiple minutes between steps. I wasn't expecting that much from a simple mission like this one Related to that slowness, I'm curious: can I use two body propagators on steps that have only an impulsive delta-v (the instantaneous one) as the action (plus a non-zero event duration) to optimize that?
  6. OMG, sorry to hear that. I hope they help you recover the account and hopefully the content too, and thank you for the heads up!
  7. Not really. A PID is just a small part of the problem. What I meant by closed loop is a guidance controller that will try to achieve a given orbit instead of blindly following the calculated attitude/throttle over time
  8. Yeah, but still way better than I could do myself Do you know some keywords I can search for, if I ever try to write a closed loop guidance control? Sure thing: https://www.dropbox.com/s/x9i5mao7cx333i8/execlvdcontrolt.ks?dl=0 I have used the csvtool application (available on Linux) to transpose the generated CSV and test it. Yes, customization would require changes in the kOS script too, but that part is already easily changeable. I know I can generate data from the GA tool, but I was thinking in a slightly more advanced workflow, like, for example, generating a few lines at the beginning of the file with the expected state after each event, and only after that putting the throttle/attitude data points. That would allow me to display how much the ship is deviating from the plan, and maybe add some sort of closed loop guidance to the mix
  9. Awesome! I have just reworked the script side of the thing to work that way (worked like a charm) and made a launch from Kerbin using it. Here are my stats: Expected orbit / Actual orbit: SMA: 6993.698km / 7077.637 km ECC: 0.9248807 / 0.92720 INC: 179.8792 deg / 179.844 deg RAAN: 57.00031 deg / 30.664 deg AOP: 184.3414 deg / 154.729 deg
  10. @ArrowstarHow hard would it be to implement the CSV exporter as a plugin instead of being embedded into the application? I'm asking because it looks to me that it would be a great example plugin (that people can learn from in order to make their own) and also enable really easy customization.
  11. Ok, it seems to have worked now, although I couldn't yet make the launch work 'till the end because KSP keeps crashing mid flight (looks like a KOS issue), but I have found a small issue with roll: it happened many times that the ship performed a full roll while it shouldn't (roll was set to zero all the time), and I'm pretty sure this is because of the way it's represented in KOS/KSP-TOT: as a 0-360 degree value (or rad, but it doesn't really matter). Since the set value is 0, a small perturbation may make it wrap to something like 359.9, and the ship does a complete roll to fix that. Now, I'm not sure this is easily fixable into the KOS script or if it's something that should/must be fixed in KOS itself, but just setting the roll to a value far from 0 and 360 should workaround this problem. @ArrowstarAnother suggestion to the KOS feature: if you transpose the data when exporting (so that each line represents a point in time instead of a column), it would be possible to make the script work by reading a line at a time. This would likely reduce memory usage, but most importantly, would cut the long loading time to zero
  12. Thank you! I'll retry now. I've also got a couple of suggestions: 1. I recommend using only lowercase chars for KOS filenames. The reason is that it'll convert to lowercase internally, which makes it unable to load files with uppercase characters on case sensitive filesystems (Linux and Mac, I think) 2. When exporting the CSV files, I think it makes more sense to be able to select only a few events (or time range) of the mission for exportation, because we'll usually have to tweak the mission after each burn to correct imprecisions. 3. The global integration output affects other things besides the CSV export, no? Would it make sense to let the user select a specific step size when exporting the CSV (so that other things are not changed)
  13. @Arrowstar Ok, I finally finished the mission planning stage (.mat is here: https://www.dropbox.com/s/m7g64hybdpsl2kz/Mun impact mission4.mat?dl=0) and generated the .csv out of it (https://www.dropbox.com/s/70r33wsk8lewfap/testKerbinLiftoff.csv?dl=0 Now, I tried to run it on the launchpad but it does not work: - It seems to keep waiting at the first event with throttle = 0 (which is expect) - When the time comes, the script will quickly jump until the coast event (number 9 at the .mat) without really running the other steps, which of course just crash the ship Am I missing something?
×
×
  • Create New...