Struct FlightData

Source
#[repr(C)]
pub struct FlightData {
Show 81 fields pub x: f32, pub y: f32, pub z: f32, pub x_dot: f32, pub y_dot: f32, pub z_dot: f32, pub alpha: f32, pub beta: f32, pub gamma: f32, pub pitch: f32, pub roll: f32, pub yaw: f32, pub mach: f32, pub kias: f32, pub vt: f32, pub gs: f32, pub wind_offset: f32, pub nozzle_pos: f32, pub internal_fuel: f32, pub external_fuel: f32, pub fuel_flow: f32, pub rpm: f32, pub ftit: f32, pub gear_pos: f32, pub speed_brake: f32, pub epu_fuel: f32, pub oil_pressure: f32, pub light_bits: LightBits, pub head_pitch: f32, pub head_roll: f32, pub head_yaw: f32, pub light_bits2: LightBits2, pub light_bits3: LightBits3, pub chaff_count: f32, pub flare_count: f32, pub nose_gear_pos: f32, pub left_gear_pos: f32, pub right_gear_pos: f32, pub adi_ils_hor_pos: f32, pub adi_ils_ver_pos: f32, pub course_state: i32, pub heading_state: i32, pub total_states: i32, pub course_deviation: f32, pub desired_course: f32, pub distance_to_beacon: f32, pub bearing_to_beacon: f32, pub current_heading: f32, pub desired_heading: f32, pub deviation_limit: f32, pub half_deviation_limit: f32, pub localizer_course: f32, pub airbase_x: f32, pub airbase_y: f32, pub total_values: f32, pub trim_pitch: f32, pub trim_roll: f32, pub trim_yaw: f32, pub hsi_bits: HsiBits, pub dedlines: Line, pub invert: Line, pub pfllines: Line, pub pflinvert: Line, pub ufc_tchan: i32, pub aux_tchan: i32, pub rwr_object_count: i32, pub rwr_symbol: [i32; 40], pub bearing: [f32; 40], pub missile_activity: [u32; 40], pub missile_launch: [u32; 40], pub selected: [u32; 40], pub lethality: [f32; 40], pub new_detection: [u32; 40], pub fwd: f32, pub aft: f32, pub total: f32, pub version_num: i32, pub head_x: f32, pub head_y: f32, pub head_z: f32, pub main_power: i32,
}

Fields§

§x: f32§y: f32§z: f32§x_dot: f32§y_dot: f32§z_dot: f32§alpha: f32§beta: f32§gamma: f32§pitch: f32§roll: f32§yaw: f32§mach: f32§kias: f32§vt: f32§gs: f32§wind_offset: f32§nozzle_pos: f32§internal_fuel: f32§external_fuel: f32§fuel_flow: f32§rpm: f32§ftit: f32§gear_pos: f32§speed_brake: f32§epu_fuel: f32§oil_pressure: f32§light_bits: LightBits§head_pitch: f32§head_roll: f32§head_yaw: f32§light_bits2: LightBits2§light_bits3: LightBits3§chaff_count: f32§flare_count: f32§nose_gear_pos: f32§left_gear_pos: f32§right_gear_pos: f32§adi_ils_hor_pos: f32§adi_ils_ver_pos: f32§course_state: i32§heading_state: i32§total_states: i32§course_deviation: f32§desired_course: f32§distance_to_beacon: f32§bearing_to_beacon: f32§current_heading: f32§desired_heading: f32§deviation_limit: f32§half_deviation_limit: f32§localizer_course: f32§airbase_x: f32§airbase_y: f32§total_values: f32§trim_pitch: f32§trim_roll: f32§trim_yaw: f32§hsi_bits: HsiBits§dedlines: Line§invert: Line§pfllines: Line§pflinvert: Line§ufc_tchan: i32§aux_tchan: i32§rwr_object_count: i32§rwr_symbol: [i32; 40]§bearing: [f32; 40]§missile_activity: [u32; 40]§missile_launch: [u32; 40]§selected: [u32; 40]§lethality: [f32; 40]§new_detection: [u32; 40]§fwd: f32§aft: f32§total: f32§version_num: i32§head_x: f32§head_y: f32§head_z: f32§main_power: i32

Implementations§

Source§

impl FlightData

Source

pub fn new<'a>() -> Result<MemoryFile<'a, Self>, Box<dyn Error + Send + Sync>>

Trait Implementations§

Source§

impl Debug for FlightData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FlightData

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Send for FlightData

Source§

impl Sync for FlightData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.