Orbit: So many changes. Fixed the update and output code in both
[Orbitizer.git] / KerbalBodies.py
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python3
 
from Body import Body
from Orbit import Orbit
from math import pi
 
Kerbol = Body("Kerbol", 1.7565670e28, 261.6e6)
Moho = Body("Moho", 2.5263617e21, 250e3, Orbit(Kerbol, 5263138304, 0.2, 7. * pi / 180., 70. * pi / 180., 15. * pi / 180., pi))
Eve = Body("Eve", 1.2244127e23, 700e3, Orbit(Kerbol, 9832684544, 0.01, 2.1 * pi / 180., 15. * pi / 180., 0, pi))
Gilly = Body("Gilly", 1.2420512e17, 13e3, Orbit(Eve, 31.5e6, 0.55, 12. * pi / 180., 80. * pi / 180., 10. * pi / 180., 0.9))
Kerbin = Body("Kerbin", 5.2915793e22, 600e3, Orbit(Kerbol, 13599840256, 0, 0, 0, 0, pi))
Mun = Body("Mün", 9.7600236e20, 200e3, Orbit(Kerbin, 12e6, 0, 0, 0, 0, 0.9))
Minmus = Body("Minmus", 2.6457897e19, 60e3, Orbit(Kerbin, 47e6, 0, 6. * pi / 180., 78. * pi / 180., 38. * pi / 180., 1.7))