-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrendezvous
More file actions
37 lines (31 loc) · 713 Bytes
/
rendezvous
File metadata and controls
37 lines (31 loc) · 713 Bytes
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
clearscreen.
print "Rendezvous sequence initiated...".
sas on.
set navmode to "TARGET".
set sasmode to "RETROGRADE".
run initrendezvousdata.
set parked to false.
set T to 0.
lock throttle to T.
set gettingCloser to False.
set holdOn to 0.
until gettingCloser {
wait 0.001.
run getrendezvousdata.
if rAccel > 0 and holdOn > 10{
set gettingCloser to true.
}.
set holdOn to holdOn + 1.
}.
until parked{
wait 0.001.
run getrendezvousdata.
if rAccel < -0.01 {
set sasmode to "RETROGRADE".
print "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO" at(5,20).
run killrvel.
set parked to True.
}.
}.
//print "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO" at(5,20).
//set throttle to 1.