Jump to content

[kOS] Missile guidance system challenge.


Recommended Posts

Your task in this challenge is to create program wchich will guide missile to hit moving target.

I'm providing craft file which contains decoy and missile. First decoy is launched (without SAS or other guidance system so it will not go straight up), and when decoy will reach 250m missile is launched.

Here is example video:

And here is program:

mlaunch.txt


PRINT "LAUNCHING DECOY".
PRINT "3".
wait 1.
PRINT "2".
wait 1.
PRINT "1".
wait 1.
PRINT "DECOY LAUNCH".
lock throttle to 1.

wait 0.5.
STAGE.
PRINT "DECOY LAUNCHED".
wait 1.
SAS OFF.
lock throttle to 0.
SET tgt_ship TO VESSEL("bogey Probe").
PRINT "AWAITING UNTIL DECOY WILL REACH 250m altitude".
wait until tgt_ship:altitude >= 250.
PRINT "MISSILE LAUNCH".
run missile(tgt_ship).
PRINT "PROGRAM ENDED".

missile.txt


DECLARE PARAMETER tgt.

LOCK throttle TO 1.
LOCK steering TO tgt:direction.
STAGE.
PRINT "MISSILE LAUNCHED".

until 0 {
wait 0.1.
print tgt:distance + " " + tgt:bearing.
}.

Rules:

1. You have to use provided craft file without any changes. (this means name "bogey", because its hardcoded in code to get target reference).

2. You have to just run mlaunch.txt - no other input allowed.

( So all you need to do is open terminal (you can use ag1), type "switch to 0.", type "run mlaunch.").

3. Your task is to edit missile.txt.

4. No mods other than kOS.

Scoring:

You task is to hit target, preferabbly with over 90% probability.

When you will do it feel free to make this harder (you can make smaller decoy, you can make faster decoy, you can try switching to decoy and controlling it to avoid missile).

Files:

http://s000.tinyupload.com/index.php?file_id=53675758615011463839

or

http://www.speedyshare.com/NaRbr/guidance.zip

Edited by adammada
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...