#[repr(C)]pub struct VESSELSTATUS {}
Expand description
Binding for OrbiterSDK’s VESSELSTATUS
struct
Fields§
§rpos: VECTOR3
Position relative to rbody in ecliptic frame [m]
rvel: VECTOR3
Velocity relative to rbody in ecliptic frame [m/s]
vrot: VECTOR3
Rotation velocity about principal axes in ecliptic frame [rad/s]
arot: VECTOR3
Vessel orientation against ecliptic frame
fuel: f64
Fuel level. Between 0 and 1.
eng_main: f64
Main/retro engine setting. Between -1 and 1.
eng_hovr: f64
Hover engine setting. Between 0 and 1.
rbody: OBJHANDLE
Handle of reference body
base: OBJHANDLE
Handle of docking or landing target
port: i32
Index of designated docking or landing port
status: i32
Flight status indicator
- 0 = active (freeflight)
- 1 = inactive (landed)
vdata: [VECTOR3; 10]
Additional vector parameters
-
vdata[0]
: contains landing parametersif
status
is equal to 1,vdata[0]
contains the longitude, latitude, and heading of landed vessel -
vdata[1]
-vdata[9]
: not used
fdata: [f64; 10]
additional floating point parameters (not used)
flag: [DWORD; 10]
Additional integer and bitflag parameters
-
flag[0] & 1
:- 0: ingore eng_main and eng_hovr entries, do not change thruster settings
- 1: set ThrusterGroupType::Main and ThrusterGroupType::Retro thruster groups from
eng_main
, and ThrusterGroupType::Hover fromeng_hovr
.
-
flag[0] & 2
:- 0: ignore fuel level, do not change fuel levels
- 1: set fuel level of first propellant resource from fuel
-
flag[1]
-flag[9]
: not used