space_ex v0.1.1 SpaceEx.SpaceCenter.Flight

Used to get flight telemetry for a vessel, by calling SpaceEx.SpaceCenter.Vessel.flight/3.

All of the information returned by this class is given in the reference frame passed to that method. Obtained by calling SpaceEx.SpaceCenter.Vessel.flight/3.

To get orbital information, such as the apoapsis or inclination, see SpaceEx.SpaceCenter.Orbit.

Link to this section Summary

Functions

The total aerodynamic forces acting on the vessel, in reference frame SpaceEx.SpaceCenter.ReferenceFrame

The pitch angle between the orientation of the vessel and its velocity vector, in degrees

The direction opposite to the normal of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The direction opposite to the radial direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The current density of the atmosphere around the vessel, in \(kg/m^3\)

The altitude above the surface of the body, in meters

The position of the center of mass of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The direction that the vessel is pointing in, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The aerodynamic drag currently acting on the vessel

The coefficient of drag

The dynamic pressure acting on the vessel, in Pascals

The elevation of the terrain under the vessel, in meters

The equivalent air speed of the vessel, in meters per second

The current G force acting on the vessel in \(m/s^2\)

The heading of the vessel (its angle relative to north), in degrees

The horizontal speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The latitude of the vessel for the body being orbited, in degrees

The aerodynamic lift currently acting on the vessel

The coefficient of lift

The longitude of the vessel for the body being orbited, in degrees

The speed of the vessel, in multiples of the speed of sound

The altitude above sea level, in meters

The direction normal to the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The pitch of the vessel relative to the horizon, in degrees

The prograde direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The radial direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The retrograde direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The vessels Reynolds number

The roll of the vessel relative to the horizon, in degrees

The rotation of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The yaw angle between the orientation of the vessel and its velocity vector, in degrees

The speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The speed of sound, in the atmosphere around the vessel, in \(m/s\)

The current amount of stall, between 0 and 1

The static (ambient) temperature of the atmosphere around the vessel, in Kelvin

The static atmospheric pressure acting on the vessel, in Pascals

The static atmospheric pressure at mean sea level, in Pascals

The altitude above the surface of the body or sea level, whichever is closer, in meters

An estimate of the current terminal velocity of the vessel, in meters per second

The thrust specific fuel consumption for the jet engines on the vessel

The total air temperature of the atmosphere around the vessel, in Kelvin

The true air speed of the vessel, in meters per second

The velocity of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

The vertical speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

Simulate and return the total aerodynamic forces acting on the vessel, if it where to be traveling with the given velocity at the given position in the atmosphere of the given celestial body

Link to this section Functions

Link to this function get_aerodynamic_force(conn, this)

The total aerodynamic forces acting on the vessel, in reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons.

Link to this function get_angle_of_attack(conn, this)

The pitch angle between the orientation of the vessel and its velocity vector, in degrees.

Link to this function get_anti_normal(conn, this)

The direction opposite to the normal of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_anti_radial(conn, this)

The direction opposite to the radial direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_atmosphere_density(conn, this)

The current density of the atmosphere around the vessel, in \(kg/m^3\).

Link to this function get_ballistic_coefficient(conn, this)

The ballistic coefficient.

Requires Ferram Aerospace Research.

Link to this function get_bedrock_altitude(conn, this)

The altitude above the surface of the body, in meters.

When over water, this is the altitude above the sea floor. Measured from the center of mass of the vessel.

Link to this function get_center_of_mass(conn, this)

The position of the center of mass of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

Returns: The position as a vector.

Link to this function get_direction(conn, this)

The direction that the vessel is pointing in, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_drag(conn, this)

The aerodynamic drag currently acting on the vessel.

Returns: A vector pointing in the direction of the force, with its magnitude equal to the strength of the force in Newtons.

Link to this function get_drag_coefficient(conn, this)

The coefficient of drag.

This is the amount of drag produced by the vessel. It depends on air speed, air density and wing area.

Requires Ferram Aerospace Research.

Link to this function get_dynamic_pressure(conn, this)

The dynamic pressure acting on the vessel, in Pascals.

This is a measure of the strength of the aerodynamic forces. It is equal to \(\frac{1}{2} . \mbox{air density} . \mbox{velocity}^2\). It is commonly denoted \(Q\).

Link to this function get_elevation(conn, this)

The elevation of the terrain under the vessel, in meters.

This is the height of the terrain above sea level, and is negative when the vessel is over the sea.

Link to this function get_equivalent_air_speed(conn, this)

The equivalent air speed of the vessel, in meters per second.

Link to this function get_g_force(conn, this)

The current G force acting on the vessel in \(m/s^2\).

Link to this function get_heading(conn, this)

The heading of the vessel (its angle relative to north), in degrees.

A value between 0° and 360°.

Link to this function get_horizontal_speed(conn, this)

The horizontal speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Link to this function get_latitude(conn, this)

The latitude of the vessel for the body being orbited, in degrees.

Link to this function get_lift(conn, this)

The aerodynamic lift currently acting on the vessel.

Returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons.

Link to this function get_lift_coefficient(conn, this)

The coefficient of lift.

This is the amount of lift produced by the vessel, and depends on air speed, air density and wing area.

Requires Ferram Aerospace Research.

Link to this function get_longitude(conn, this)

The longitude of the vessel for the body being orbited, in degrees.

Link to this function get_mach(conn, this)

The speed of the vessel, in multiples of the speed of sound.

Link to this function get_mean_altitude(conn, this)

The altitude above sea level, in meters.

Measured from the center of mass of the vessel.

Link to this function get_normal(conn, this)

The direction normal to the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_pitch(conn, this)

The pitch of the vessel relative to the horizon, in degrees.

A value between -90° and +90°.

Link to this function get_prograde(conn, this)

The prograde direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_radial(conn, this)

The radial direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_retrograde(conn, this)

The retrograde direction of the vessels orbit, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The direction as a unit vector.

Link to this function get_reynolds_number(conn, this)

The vessels Reynolds number.

Requires Ferram Aerospace Research.

Link to this function get_roll(conn, this)

The roll of the vessel relative to the horizon, in degrees.

A value between -180° and +180°.

Link to this function get_rotation(conn, this)

The rotation of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame

Returns: The rotation as a quaternion of the form \((x, y, z, w)\).

Link to this function get_sideslip_angle(conn, this)

The yaw angle between the orientation of the vessel and its velocity vector, in degrees.

Link to this function get_speed(conn, this)

The speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Link to this function get_speed_of_sound(conn, this)

The speed of sound, in the atmosphere around the vessel, in \(m/s\).

Link to this function get_stall_fraction(conn, this)

The current amount of stall, between 0 and 1.

A value greater than 0.005 indicates a minor stall and a value greater than 0.5 indicates a large-scale stall.

Requires Ferram Aerospace Research.

Link to this function get_static_air_temperature(conn, this)

The static (ambient) temperature of the atmosphere around the vessel, in Kelvin.

Link to this function get_static_pressure(conn, this)

The static atmospheric pressure acting on the vessel, in Pascals.

Link to this function get_static_pressure_at_msl(conn, this)

The static atmospheric pressure at mean sea level, in Pascals.

Link to this function get_surface_altitude(conn, this)

The altitude above the surface of the body or sea level, whichever is closer, in meters.

Measured from the center of mass of the vessel.

Link to this function get_terminal_velocity(conn, this)

An estimate of the current terminal velocity of the vessel, in meters per second.

This is the speed at which the drag forces cancel out the force of gravity.

Link to this function get_thrust_specific_fuel_consumption(conn, this)

The thrust specific fuel consumption for the jet engines on the vessel.

This is a measure of the efficiency of the engines, with a lower value indicating a more efficient vessel. This value is the number of Newtons of fuel that are burned, per hour, to produce one newton of thrust.

Requires Ferram Aerospace Research.

Link to this function get_total_air_temperature(conn, this)

The total air temperature of the atmosphere around the vessel, in Kelvin.

This includes the SpaceEx.SpaceCenter.Flight.get_static_air_temperature/2 and the vessel's kinetic energy.

Link to this function get_true_air_speed(conn, this)

The true air speed of the vessel, in meters per second.

Link to this function get_velocity(conn, this)

The velocity of the vessel, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Returns: The velocity as a vector. The vector points in the direction of travel, and its magnitude is the speed of the vessel in meters per second.

Link to this function get_vertical_speed(conn, this)

The vertical speed of the vessel in meters per second, in the reference frame SpaceEx.SpaceCenter.ReferenceFrame.

Link to this function simulate_aerodynamic_force_at(conn, this, body, position, velocity)

Simulate and return the total aerodynamic forces acting on the vessel, if it where to be traveling with the given velocity at the given position in the atmosphere of the given celestial body.

Returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons.