Jump to content

My first KOS script: Fully automated Relay System set up!


ToukieToucan

Recommended Posts

After some time working on my KOS script I was able to make a 100% automated Relay System set-up.

Craft file will be up soon.

 

AALAUNCH:

http://pastebin.com/6ymKdmRK

What it does:

  • Countdown
  • Can detect when asparagus staging stage needs to be staged
  • Gravity Turn
  • Circularization (100 x 100 km)

ABORBIT:

http://pastebin.com/VHnVAab2

What it does:

  • Calculate how much Dv is needed to go from current orbit to desired orbit (750 x 100 in this case)
  • Burn to exactly desired orbit (with margin of 0.1 meter)
  • Calculate how much Dv is needed to go from current orbit to desired orbit (750 x 750 in this case)
  • Burn to desired orbit, kinda... (due to not being able to burn all the Dv at once at the Ap +0 results will vary: Margin +- 500 m)
  • Activate Relay Sat's solar panels and Omni
  • Stage Relay Sat (Force of decoupler has been taken into account, roughly)

ACORBIT:

http://pastebin.com/5jv3YZkM

What it does:

  • Decrease orbit so the orbital period is lower, spacing the sats evenly (roughly)
  • Increasing the orbit to a circular 750 x 750 orbit again (And ofcourse calculate how much Dv is needed)
  • Stage Relay Sat (Force of decoupler has been taken into account, roughly)

ADORBIT:

http://pastebin.com/B9EFF7th

What it does:

Same as ACORBIT:

  • Decrease orbit so the orbital period is lower, spacing the sats evenly (roughly)
  • Increasing the orbit to a circular 750 x 750 orbit again (And ofcourse calculate how much Dv is needed)
  • Stage Relay Sat (Force of decoupler has been taken into account, roughly)

 

I'm sure I could improve some things (feel free to say what could be done better), but anyways, this was tougher to make than I thought it would be it kind of succeeded.

Ps, ran a test and visible separation occurred after ~100 days which isn't that bad, right...

Edited by ToukieToucan
Link to comment
Share on other sites

On August 4, 2016 at 8:56 AM, NSEP said:

Good! I like it. Was programming this hard? Because i would like to do something hard, so i can learn from it! Its really good @ToukieToucan!

It was quite a project, though mostly it is fine tuning and fixing bugs in my script (like using non existant commands) which can take up a lot of time.

Edited by ToukieToucan
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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