CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

connector

Planning.Interfaces.WaypointPlanInput

Fixed-capacity waypoint plan received from a mission-data message

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
parametercapacityInteger(min = 2) = 16
inputvalidBooleanThe message contains a complete candidate plan
inputsequenceIntegerChanges whenever the sender publishes a new plan
inputwaypointCountInteger(min = 0, max = capacity)Number of populated rows
inputglobalFrameBooleanTrue for geodetic rows; false for local East-North-Up rows
inputoriginGeodeticReal[3]Local origin [latitude_deg, longitude_deg, altitude_m]
inputwaypointReal[capacity, 3]Local [east_m,north_m,up_m] or global [lat_deg,lon_deg,alt_m] rows
inputvelocityEnuReal[capacity, 3]World-frame velocity at each waypoint [m/s]
inputyawReal[capacity](each unit = "rad")Heading at each waypoint
inputnominalSpeedReal(unit = "m/s")Nominal segment-average speed
inputminSegmentDurationReal(unit = "s")Lower duration bound

Modelica declarations and implementation

Show parameters, interfaces and source

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

connector WaypointPlanInput
    "Fixed-capacity waypoint plan received from a mission-data message"
    parameter Integer capacity(min = 2) = 16;

    input Boolean valid "The message contains a complete candidate plan";
    input Integer sequence "Changes whenever the sender publishes a new plan";
    input Integer waypointCount(min = 0, max = capacity)
      "Number of populated rows";
    input Boolean globalFrame
      "True for geodetic rows; false for local East-North-Up rows";
    input Real originGeodetic[3]
      "Local origin [latitude_deg, longitude_deg, altitude_m]";
    input Real waypoint[capacity, 3]
      "Local [east_m,north_m,up_m] or global [lat_deg,lon_deg,alt_m] rows";
    input Real velocityEnu[capacity, 3]
      "World-frame velocity at each waypoint [m/s]";
    input Real yaw[capacity](each unit = "rad") "Heading at each waypoint";
    input Real nominalSpeed(unit = "m/s") "Nominal segment-average speed";
    input Real minSegmentDuration(unit = "s") "Lower duration bound";
  end WaypointPlanInput;