FANDOM


// bodystats: sets up variables for use in programs // that need stats about the orbital body that is the // current SOI. Looks up the body name and fills // the appropriate variables. clearscreen. declare parameter forBody.

print "Settings for SOI body: " + forBody. print " ".

// Placeholder Defaults in case I didn't code stats for current body. // ------------------------------------------------------------------

set bodySurfaceGrav to 10. // The m/s^2 at the body's surface. set bodyRadius to 500000 . // The radius from center to equator. set bodyMaxElev to 4000. // The peak of the highest mountain. set bodyTVelTenKm to 999999. // Terminal velocity at 10,000 m.

// The actual math for term vel is complex. // This data point is for fuzzy heuristics. // Set really high for planets with no atmo.

set descendTop to 50000 . // The highest AGL at which descents might start. set descendBot to 100 . // the AGL where a descending craft should hover. set descendTopSpeed to 2000.0 . // Desired speed at top of descent profile. set descendBotSpeed to 4.0 . // Desried speed at bottom of desecnt profile. set bodyLandingSpeed to 4.0. // Desried speed to come down from hover to set craneDropAGL to 10. // AGLto drop skycrane payloads from. // Warning this is measured from craft control // unit, not from craft's bottom. set throttleGentle to 100. // Throttle gentleness. // too low and the throttle is twitchy. // too high and its too slow to react.

set c to " ====== deviations for each body ===== ". if forBody = "Kerbin" { set bodySurfaceGrav to 9.802 . set bodyRadius to 600000 . set bodyMaxElev to 6761 . set bodyTVelTenKm to 267 . set descendTop to 70000 . set descendBot to 100. set descendTopSpeed to 1800.0 . set descendBotSpeed to 6.0 . set descendLandingSpeed to 4.0 . }. if forBody = "Mun" { set bodySurfaceGrav to 1.63 . set bodyRadius to 200000 . set bodyMaxElev to 7061 . set descendTop to 20000 . set descendBot to 50 . set descendTopSpeed to 542.0 . set descendBotSpeed to 6.0 . set bodyLandingSpeed to 2.0 . }. if forBody = "Minmus" { set bodySurfaceGrav to 0.491 . set bodyRadius to 60000 . set bodyMaxElev to 5725 . set descendTop to 10000 . set descendBot to 30 . set descendTopSpeed to 274.0 . set descendBotSpeed to 5.0 . set bodyLandingSpeed to 2.0 . }.

print " ". print "bodySurfaceGrav = " + bodySurfaceGrav. print "bodyRadius = " + bodyRadius. print "descendTop = " + descendTop. print "descendBot = " + descendBot. print "descendTopSpeed = " + descendTopSpeed. print "descendBotSpeed = " + descendBotSpeed. print "bodyLandingSpeed = " + bodyLandingSpeed. print "throttleGentle = " + throttleGentle. print " ". print "('AGL' means Above Ground Level to distinguish ". print "from sea level altitude.)". print " ". print "You may change these variables with the 'set' ". print "command before running other programs to try ". print "other settings.". print " ".

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.