CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

model

Tests.HorizonRefusals.FractionalRelease

A release period that is not a whole number of inertial ticks

Base classes

Tests.HorizonRefusals.Driver

Follow base classes for inherited declarations; this page lists explicit declarations only.

Modelica declarations and implementation

Show parameters, interfaces and source

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

model FractionalRelease
    "A release period that is not a whole number of inertial ticks"
    // deltasPerFusion is formed by rounding, so 0.009 against a 1.25 ms tick
    // would quietly have become SEVEN ticks, a release period of 8.75 ms, and
    // every epoch the block published would have been wrong by 0.25 ms per
    // release with nothing reporting it. The horizon is kept an exact multiple
    // of this release period so that this model trips the RELEASE assertion
    // and only that one.
    extends Tests.HorizonRefusals.Driver(
      fusionPeriod_s=0.009,
      fusionHorizon_s=0.045);
  end FractionalRelease;