-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsr.ks
68 lines (50 loc) · 1.68 KB
/
msr.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
runoncepath("m.lib").
initialize().
global throt is 0.
global pitch is 0.
global lock throttle to throt.
function launch_to_orbit {
launch().
ascent(150000, 70000).
toggle ag1.
wait until altitude > 71000.
systems:warp_to(eta:apoapsis - 90).
obt_crc().
}
function trans_munar_phasing {
steer_to("pro").
coast_to_phz(phase_angle@:bind(mun, 128)).
}
function trans_munar_injection {
in_soi_inj(30000, 80000).
stage_shutdown(1).
}
// Warp to 60 seconds before Munar periapsis.
function coast_to_orbital_insertion {
coast_to_flyby(mun, 60).
}
function munar_orbital_insertion {
stage_ignition(1).
wait 0.
obt_ins(40000, 2000).
wait 0.
}
function munar_orbital_adjustment {
obt_inc().
set throt to 0. wait 1.
systems:warp_to(eta:apoapsis - 60).
steer_to("pro").
obt_crc().
stage_shutdown(3).
}
//————————————————————————————————————————————————————— EXPORT —————————————————————————————————————————————————————//
export(lex(
"LTO", launch_to_orbit@,
"TMP", trans_munar_phasing@,
"TMI", trans_munar_injection@,
"CST", coast_to_orbital_insertion@,
"MOI", munar_orbital_insertion@,
"MOA", munar_orbital_adjustment@
)).
}