Template:OrbitAltitude

From Kerbal Space Program Wiki
Revision as of 14:20, 28 August 2017 by Aru (talk | contribs) (Undo revision 79402 by Aru (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template calculates the altitude of an orbit, given the mass of the planet, the planet's radius and the period of the orbit. The altitude will be calculated by {{OrbitAltitude/Core}} and then parsed with {{Formatnum}} and adding a unit.

Parameters

#/Name Optional Description
period or 1 × No Period of the orbit in seconds
mass or 2 × No Mass of central body in kilograms
radius or 3 ✓ Yes Radius of central body in meters Default: 0
factor or f ✓ Yes Factor in which the altitude should be shown. Available values: None (m), k (km), M (Mm), G (Gm). If the radius was given kilometers it uses the factor k. Default: None
body or b ✓ Yes Uses the sidereal rotation period, mass and radius as default from the given body. Can be overwritten. Default: Not set (makes the first three parameters mandatory)
period factor or pf ✓ Yes Multiplies the period with this value. Useful to easily calculate semi-synchronous orbits (pf=1/2 then). Default: 1

Examples

Usage Result
{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000 | factor=k}}
2 862.36 km
{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}}
2 862 362.24 m