-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,447 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
// burn the next maneuver node | ||
run once libguido. | ||
|
||
parameter wrp is 0. | ||
|
||
myinit(). | ||
set mynode to nextnode. | ||
exec_n(mynode). | ||
until NOT hasnode { | ||
set mynode to nextnode. | ||
exec_n(mynode,wrp). | ||
} | ||
myexit(). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
// Launch from Kerbin to Duna | ||
run once libguido. | ||
|
||
print "Duna 1.0". | ||
|
||
KUniverse:QUICKSAVETO("x0-prelaunch"). | ||
parameter alt is -1. | ||
parameter incl_change is False. | ||
|
||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
myquicksave("x0-prelaunch"). | ||
run go_orb(250000). | ||
lock throttle to 0. | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x1-orbit"). | ||
myquicksave("x1-orbit"). | ||
} | ||
if ship:orbit:inclination > 0.01 { | ||
run incl. | ||
} | ||
if ship:apoapsis < 1000000*0.99 { | ||
run reorb(1000000). | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x2-pretransfer"). | ||
myquicksave("x2-pretransfer"). | ||
} | ||
run tr_pl(Duna). | ||
run tr_pl(Duna,alt). | ||
} else { | ||
// In SOI, but not yet on a stable orbit. | ||
if ship:apoapsis < 0 OR ship:apoapsis > 200000 { run tr_pl(Duna). } | ||
} | ||
|
||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x3-dstorbit"). | ||
print "You arrived at Duna!". | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
print "Eve 1.0". | ||
|
||
run once libguido | ||
|
||
KUniverse:QUICKSAVETO("x0-prelaunch"). | ||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
run go_orb(250000). | ||
lock throttle to 0. | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x1-orbit"). | ||
myquicksave("x1-orbit"). | ||
} | ||
if ship:orbit:inclination > 0.01 { | ||
run incl. | ||
} | ||
if ship:apoapsis < 1000000*0.99 { | ||
run reorb(1000000). | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x2-pretransfer"). | ||
myquicksave("x2-pretransfer"). | ||
} | ||
run tr_pl(Eve). | ||
} else { | ||
// In SOI, but not yet on a stable orbit. | ||
if ship:apoapsis < 0 OR ship:apoapsis > 200000 { run tr_pl(Eve). } | ||
} | ||
|
||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x5-dstlow"). | ||
myquicksave("x5-dstlow"). | ||
print "You arrived at Eve!". | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// Launch a new IR Telescope on a new orbit | ||
// | ||
|
||
parameter ir_ap. | ||
parameter ir_pe. | ||
parameter ir_incl is 0. | ||
parameter ir_lan is 0. | ||
|
||
run once libguido. | ||
run once liborbital. | ||
|
||
if ir_ap < ir_pe { | ||
panic("AP < PE!."). | ||
} | ||
|
||
set ir_ap to 1000000*ir_ap. | ||
set ir_pe to 1000000*ir_pe. | ||
|
||
// Launch from Kerbin to Minmus | ||
print "Launching IR Telescope to Orbit". | ||
print "AP : "+km(ir_ap). | ||
print "PE : "+km(ir_pe). | ||
if ir_incl <> 0 { | ||
print "Incl: "+ir_incl. | ||
print "LAN : "+ir_lan. | ||
} | ||
|
||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
myquicksave("x0-prelaunch"). | ||
run go_orb(250000). | ||
myquicksave("x1-orbit"). | ||
} | ||
lock throttle to 0. | ||
panels ON. | ||
|
||
if ship:orbit:inclination > 0.01 { | ||
run incl. | ||
myquicksave("x2a-postincl"). | ||
} | ||
|
||
// Escape Kerbin | ||
// We are sloppy and don't care where we burn. | ||
// 1000 m/s burn should do it. | ||
set mynode to NODE(time:seconds+600,0,0,1000). | ||
ADD mynode. | ||
exec_n(mynode,0). | ||
wait_until_in_orbit_of(Sun). | ||
print "In orbit around the Sun.". | ||
myquicksave("x3-solarorbit"). | ||
} | ||
|
||
if ship:apoapsis > ir_ap { | ||
// Outside of Kerbin Orbit. | ||
run reorb(ir_pe). | ||
set n to change_ap_at_pe(ir_ap). | ||
ADD n. | ||
exec_n(n). | ||
myquicksave("x5-finalorbit"). | ||
} else { | ||
// Outside of Kerbin Orbit. | ||
run reorb(ir_ap). | ||
set n to change_pe_at_ap(ir_pe). | ||
ADD n. | ||
exec_n(n). | ||
myquicksave("x5-finalorbit"). | ||
|
||
} | ||
myexit(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Launch from Kerbin to Dres | ||
run once libguido. | ||
|
||
clearscreen. | ||
print "Jool Launcher". | ||
|
||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
myquicksave("x0-prelaunch"). | ||
run go_orb(250000). | ||
lock throttle to 0. | ||
myquicksave("x1-orbit"). | ||
} | ||
if ship:orbit:inclination > 0.01 { | ||
run incl. | ||
myquicksave("x2a-postincl"). | ||
} | ||
if ship:apoapsis < 1000000*0.99 { | ||
run reorb(5000000). | ||
myquicksave("x2b-pretransfer"). | ||
} | ||
run tr_pl(Jool). | ||
} else { | ||
// In SOI, but not yet on a stable orbit. | ||
if ship:apoapsis < 0 OR ship:apoapsis > 100000000 { run tr_pl(Jool). } | ||
} | ||
|
||
panic("You arrived at Jool!"). | ||
myexit(). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Launch from Kerbin to Minmus | ||
print "Minmus 1.0". | ||
|
||
KUniverse:QUICKSAVETO("x0-prelaunch"). | ||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
run go_orb. | ||
} | ||
lock throttle to 0. | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x1-orbit"). | ||
if ship:orbit:inclination < 5 { | ||
run reorb(80000). | ||
run incl. | ||
run incl(6,Minmus:orbit:lan). | ||
|
||
} | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x2-pretransfer"). | ||
run tr_min. | ||
} else { | ||
// In SOI of Minimus, but not yet on a stable orbit. | ||
if ship:apoapsis < 0 OR ship:apoapsis > 100000 { run tr_min. } | ||
} | ||
|
||
//if ship:apoapsis > 11000 { run reorb(10000). } | ||
//if ship:orbit:inclination > 0.1 { run incl. } | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x3-dstorbit"). | ||
//run hit(0,6). | ||
print "You arrived on Minmus!". | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
// Launch from Kerbin to Minmus | ||
print "Minmus 1.0". | ||
run once libguido. | ||
|
||
KUniverse:QUICKSAVETO("x0-prelaunch"). | ||
if body = Kerbin { | ||
if ship:altitude < 65000 { | ||
run go_orb. | ||
run go_orb(250000). | ||
} | ||
lock throttle to 0. | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x1-orbit"). | ||
myquicksave("x1-orbit"). | ||
if ship:orbit:inclination < 5 { | ||
run reorb(80000). | ||
run incl. | ||
run incl(6,Minmus:orbit:lan). | ||
|
||
} | ||
run reorb(80000). | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x2-pretransfer"). | ||
myquicksave("x2a-postincl"). | ||
if ship:apoapsis < 1000000*0.99 { | ||
run reorb(1000000). | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x2-pretransfer"). | ||
} | ||
myquicksave("x2b-pretransfer"). | ||
run tr_min. | ||
} else { | ||
} | ||
|
||
if body = Minmus { | ||
// In SOI of Minimus, but not yet on a stable orbit. | ||
if ship:apoapsis < 0 OR ship:apoapsis > 100000 { run tr_min. } | ||
} | ||
|
||
if ship:apoapsis > 11000 { run reorb(10000). } | ||
//if ship:orbit:inclination > 0.1 { run incl. } | ||
wait until KUniverse:CANQUICKSAVE. | ||
KUniverse:QUICKSAVETO("x3-dstorbit"). | ||
if ship:orbit:inclination > 0.1 { run incl. } | ||
myquicksave("x6-minimus-orbit"). | ||
//run hit(0,6). | ||
print "You arrived on Minmus!". | ||
|
||
myexit(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.