OpticalFlow

Type Alias OpticalFlow 

Source
pub type OpticalFlow = OpticalFlow;
Expand description

Originally defined in common::messages::optical_flow.

Aliased Type§

pub struct OpticalFlow {
    pub time_usec: u64,
    pub sensor_id: u8,
    pub flow_x: i16,
    pub flow_y: i16,
    pub flow_comp_m_x: f32,
    pub flow_comp_m_y: f32,
    pub quality: u8,
    pub ground_distance: f32,
    pub flow_rate_x: f32,
    pub flow_rate_y: f32,
}

Fields§

§time_usec: u64

MAVLink field time_usec.

Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.

§sensor_id: u8

MAVLink field sensor_id.

Sensor ID

§flow_x: i16

MAVLink field flow_x.

Flow in x-sensor direction

§flow_y: i16

MAVLink field flow_y.

Flow in y-sensor direction

§flow_comp_m_x: f32

MAVLink field flow_comp_m_x.

Flow in x-sensor direction, angular-speed compensated

§flow_comp_m_y: f32

MAVLink field flow_comp_m_y.

Flow in y-sensor direction, angular-speed compensated

§quality: u8

MAVLink field quality.

Optical flow quality / confidence. 0: bad, 255: maximum quality

§ground_distance: f32

MAVLink field ground_distance.

Ground distance. Positive value: distance known. Negative value: Unknown distance

§flow_rate_x: f32

MAVLink field flow_rate_x.

Flow rate about X axis

§flow_rate_y: f32

MAVLink field flow_rate_y.

Flow rate about Y axis