CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

package

Vision.Features.FastCircleStencil

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
constantradiusInteger= 3
constantsampleCountInteger= 16
constantoffsetsInteger[sampleCount,2] = [ -3,0; -3,1; -2,2; -1,3; 0,3; 1,3; 2,2; 3,1; 3,0; 3,-1; 2,-2; 1,-3; 0,-3; -1,-3; -2,-2; -3,-1]

Modelica declarations and implementation

Show parameters, interfaces and source

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

package FastCircleStencil
  constant Integer radius = 3;
  constant Integer sampleCount = 16;
  // Row/column offsets, clockwise from the top of the radius-three circle.
  constant Integer offsets[sampleCount,2] = [
    -3,0; -3,1; -2,2; -1,3; 0,3; 1,3; 2,2; 3,1;
    3,0; 3,-1; 2,-2; 1,-3; 0,-3; -1,-3; -2,-2; -3,-1];
end FastCircleStencil;