-
Notifications
You must be signed in to change notification settings - Fork 0
/
ksp_types.py
57 lines (52 loc) · 1.06 KB
/
ksp_types.py
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from dataclasses import dataclass
#
# Types
#
@dataclass
class VesselAttitude:
bIsDataValid: bool
fHeading: float
fPitch: float
fRoll: float
@dataclass
class VesselOrbitalParameters:
bIsDataValid: bool
sCelestialBodyName: str
fCelestialBodyMass: float
fPeriod: float
fTimeToApoapsis: float
fTimeToPeriapsis: float
@dataclass
class VesselResources:
bIsDataValid: bool
fWater: float
fWaterMax: float
fFood: float
fFoodMax: float
fOxygen: float
fOxygenMax: float
fAtmo: float
fAtmoMax: float
fWasteAtmo: float
fWasteAtmoMax: float
@dataclass
class VesselFlightState:
bIsDataValid: bool
iSituation: int
fWeight: float
fThrustMax: float
fVerticalSpeed: float
fForwardSpeed: float
fLateralSpeed: float
fPitchSpeed: float
fPitchTorqueMax: float
fPitchMomentOfInertia: float
fYawSpeed: float
fYawTorqueMax: float
fYawMomentOfInertia: float
@dataclass
class VesselFlightControl:
bIsInputValid: bool
fThrottle: float
fPitch: float
fYaw: float