mejval85 Posted August 6, 2012 Share Posted August 6, 2012 Is it possible to create a programmed flight? I mean the programmed flight itinerary that would be run automatically and could be interrupted by the player, such as:At 0 milliseconds start the solid engines.At 30000 milliseconds drop the last stage and fire the liquid engines.At 90000 milliseconds rotate to 270 degrees and decrease the thrust to 30%.Is it possible (directly or with the SDK in .Net)? It would be nice to:1) put it in a flight script (ie. written in notepad) or2) create it similarly to visual combination of stages in VAB or3) is it possible to create this automation in .Net via the SDK?Thanks Link to comment Share on other sites More sharing options...
Cykyrios Posted August 6, 2012 Share Posted August 6, 2012 MechJeb's Autom8 module may be able to do that (it has a "fly me to the Mun" function...), but I can't tell you for sure.Once flight plans and AI-piloted rockets are officially implemented, I guess we will have access to the necessary stuff to make our own flight programs. Link to comment Share on other sites More sharing options...
pebble_garden Posted August 6, 2012 Share Posted August 6, 2012 Man oh man, I would love flight programming. I used to play a lot of Omega (a cyber-tank programming game by Origin, back in the late 80s) and Carnage Heart, a similar Playstation 1 game from the 90s. I would lie awake at night, mentally sketching out code, and realize I was playing a computer game without needing a computer. How fun!Anyway, I would be all over scripting robotic missions. Link to comment Share on other sites More sharing options...
Daid Posted August 6, 2012 Share Posted August 6, 2012 I'm working on an Addon that can do exactly this. I called it the "flight computer"The plan is that it executes simple statements like this:Wait 20 # wait 20 seconds before liftoffTrottle 100 #100% trottleWaitAltitude 10.000 #Wait till we reach 10.000kmTrottle 75 #Trottle a bit downWaitTillStageOutOfFuelNextStageI'm still implementing most of the commands, and I'm still learning how to do some stuff like setting the throttle from software. Link to comment Share on other sites More sharing options...
pebble_garden Posted August 6, 2012 Share Posted August 6, 2012 Ooooh, I can't wait. Link to comment Share on other sites More sharing options...
Zephram Kerman Posted August 6, 2012 Share Posted August 6, 2012 This would be really handy for photographers and videographers. If software is controlling the flight, the human can concentrate on composing beautiful images.Can you make it so that the flight computer runs on a detached assembly? Folks have been hoping for a way to do that. For example, deorbit a second-stage booster, then activate a parachute at a certain speed or altitude. Link to comment Share on other sites More sharing options...
pebble_garden Posted August 7, 2012 Share Posted August 7, 2012 Can you imagine a tandem launch with two craft flying in loose formation? That would be spectacular. Link to comment Share on other sites More sharing options...
mejval85 Posted August 7, 2012 Author Share Posted August 7, 2012 Cool, I thought I was the only one thinking about this. I'll start investigating how to implement this, and, if possible, write an addon or a request for KSP's devs.Anyone who could direct me towards this (a link, e-mail etc) or needs help? Link to comment Share on other sites More sharing options...
Daid Posted August 7, 2012 Share Posted August 7, 2012 Can you imagine a tandem launch with two craft flying in loose formation? That would be spectacular.I think that will have to remain a dream for now. Running it on a detached assembly doesn't seem to work for now (outside of my capabilities) Link to comment Share on other sites More sharing options...
deadshot462 Posted August 7, 2012 Share Posted August 7, 2012 This would be an awesome feature/add onA) Different types of triggers for events:-Time event-Location/altitude/pressure/speed Ability to snap screenshots or pictures using the photo add-on, based on triggers stated aboveAttempting to program a Curiosity style controlled landing would be awesome in KSP Link to comment Share on other sites More sharing options...
olex Posted August 7, 2012 Share Posted August 7, 2012 (edited) With MechJeb autom8, all of this is pretty much doable already. It takes Lua scripts, and has a bunch of functions to interface with MechJeb modules, as well as providing data about the spacecraft. Here's the documentation on MechJeb wiki: http://wiki.mechjeb.com/index.php?title=Autom8You can do almost all the things named in this thread:Control most of MechJeb modulesDirectly control the spacecraft (set heading, throttle)Use time (wait(seconds)), MechJeb state (wait(mechjeb.free)) or spacecraft state (while loops checking for different parameters with a wait(1) inside) to time the actions you takeUpcoming in the update:Manual throttle control (currently a bit broken)Manual stagingpossibly: access to ILS module for spaceplane automationAs you see, it's getting a nice functionality bump in the upcoming MechJeb update, so stay tuned The "Fly me to the Mun" script is a good example of what can be done, and I've written a "return from Mun" script that does something very similar to a free return trajectory, that I will publish once the new version is out. Edited August 7, 2012 by olex Link to comment Share on other sites More sharing options...
Recommended Posts