CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

Tests.ManualGuidanceTests.shapedStick

The stick curve the manual guidance source applies

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputvalueReal
outputresultReal

Modelica declarations and implementation

Show parameters, interfaces and source

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

function shapedStick "The stick curve the manual guidance source applies"
    input Real value;
    output Real result;
  algorithm
    result := MathUtilities.expo(
      MathUtilities.deadzone(value, deadband), expoFraction);
  end shapedStick;