CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

record

Avionics.OpticalFlowSample

Raw integrated optical flow with co-timed gyro and downward range

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
fieldvalidBoolean
fieldfreshBoolean
fieldtimestamp_sReal(unit = "s")
fieldintegratedLineOfSight_radReal[2](each unit = "rad")Right-handed scene rotations about camera/body FLU x and y over integrationTime_s. For a nadir camera, forward motion produces +y and left motion produces -x after rotation compensation
fieldintegratedLineOfSightCovariance_rad2Real[2, 2](each unit = "rad2")
fieldintegratedGyroscopeBodyFlu_radReal[3](each unit = "rad")Actual FLU body-angle integral over the same exposure interval; add x/y to line-of-sight flow to remove camera rotation
fieldintegratedGyroscopeCovariance_rad2Real[3, 3](each unit = "rad2")
fieldintegrationTime_sReal(unit = "s")
fieldgroundDistance_mReal(unit = "m")
fieldgroundDistanceVariance_m2Real(unit = "m2")Variance of the range along the camera boresight
fieldqualityReal(min = 0.0, max = 1.0)Normalized driver quality indicator

Modelica declarations and implementation

Show parameters, interfaces and source

Parameters, inputs, outputs, defaults and equations from the source file.

record OpticalFlowSample
    "Raw integrated optical flow with co-timed gyro and downward range"
    Boolean valid;
    Boolean fresh;
    Real timestamp_s(unit = "s");
    Real integratedLineOfSight_rad[2](each unit = "rad")
      "Right-handed scene rotations about camera/body FLU x and y over integrationTime_s. For a nadir camera, forward motion produces +y and left motion produces -x after rotation compensation";
    Real integratedLineOfSightCovariance_rad2[2, 2](each unit = "rad2");
    Real integratedGyroscopeBodyFlu_rad[3](each unit = "rad")
      "Actual FLU body-angle integral over the same exposure interval; add x/y to line-of-sight flow to remove camera rotation";
    Real integratedGyroscopeCovariance_rad2[3, 3](each unit = "rad2");
    Real integrationTime_s(unit = "s");
    Real groundDistance_m(unit = "m");
    Real groundDistanceVariance_m2(unit = "m2")
      "Variance of the range along the camera boresight";
    Real quality(min = 0.0, max = 1.0)
      "Normalized driver quality indicator";
  end OpticalFlowSample;