forked from KK4TEE/kOSPrecisionLand
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubtest.ks
More file actions
23 lines (17 loc) · 1.01 KB
/
subtest.ks
File metadata and controls
23 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//subtest.ks
if loopcount = 0 {
set firstEstimate to fallTime.
set firstTime to TIME:SECONDS.
lock landingtargetLATLNG to target:geoposition.
}
print "Gravity: " + round(GRAVITY, 5) + "m/s^2 " at (5,1).
print "SL Gravity: " + round(SEALEVELGRAVITY, 5) + "m/s^2 " at (5,2).
print "BetterRADAR: " + round(betterALTRADAR, 3) + "m " at (5,3).
print "VERTICALSPD: " + round(VERTICALSPEED, 2) + "m/s " at (5,4).
print "Fall time: " + round(fallTime, 3) + "s " at (5,5).
print "First Estimate: " + round(firstEstimate, 3) + "s " at (5,6).
print "Difference: " + round(firstEstimate-(TIME:SECONDS-firstTime)-fallTime, 3) + "s " at (5,7).
print "Body Radius: " + round(body:radius / 1000, 3) + "km " at (5,8).
print "SeaLevelDistance " + round(gs_distance(shipLatLng,KSCLAUNCHPAD)) + "m " at (5,9).
print "Target TERRAINHEIGHT: " + round(landingtargetLATLNG:TERRAINHEIGHT) + "m " at (5,10).
set loopcount to loopcount + 1.