Struct open_protocol::types::FlightData
[−]
[src]
pub struct FlightData { pub timestamp: Timestamp, pub syncstamp: SyncStamp, pub quaternion: QuaternionData, pub acceleration: CommonData, pub linear_velocity: VelocityData, pub angular_velocity: CommonData, pub position: PositionData, pub relative_position: RelativePosition, pub gps: GPSData, pub rtk: RTKData, pub magnet: MagnetData, pub rc: RcData, pub gimbal: GimbalData, pub status: FlightStatus, pub extra_status: FlightExtraStatus, pub battery_info: BatteryInfo, pub battery: u8, pub control_info: ControlInfo, }
Fields
timestamp: Timestamp
syncstamp: SyncStamp
quaternion: QuaternionData
acceleration: CommonData
linear_velocity: VelocityData
angular_velocity: CommonData
position: PositionData
relative_position: RelativePosition
gps: GPSData
rtk: RTKData
magnet: MagnetData
rc: RcData
gimbal: GimbalData
status: FlightStatus
extra_status: FlightExtraStatus
battery_info: BatteryInfo
battery: u8
control_info: ControlInfo
Methods
impl FlightData
[src]
fn on_ground(&self) -> bool
fn fetch_data(bytes: &[u8], target: &mut FlightData) -> Result<()>
Trait Implementations
impl Debug for FlightData
[src]
impl Copy for FlightData
[src]
impl Clone for FlightData
[src]
fn clone(&self) -> FlightData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for FlightData
[src]
fn eq(&self, __arg_0: &FlightData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FlightData) -> bool
This method tests for !=
.
impl Default for FlightData
[src]
fn default() -> FlightData
Returns the "default value" for a type. Read more