WIR_Input_Qualification_MDD

pointsModule --

High-Level Description

This module is responsible for performing the qualification of the Wheel Speed inputs to the Wheel Imbalance Rejection algorithm.

Figures

WIRInputQual.tif

Diagram – Function Data Sharing

This diagram shows all data that is shared between functions within the module.

No Shared Data

Diagram – Function (Name)

This diagram describes the functional characteristics and data flow of a given function.


Variable Data Dictionary

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

Module InputsModule Outputs
SrlComLWhlSpdVld_Cnt_lgcQualWhlFreqL_Hz_f32
SrlComRWhlSpdVld_Cnt_lgcQualWhlFreqR_Hz_f32
SrlComLWhlSpd_Hz_f32WhlFreqQualified_Cnt_lgc
SrlComRWhlSpd_Hz_f32

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
PrevQualWhlSpdLeft_Hz_M_f32single precision float040CLEARED_32
PrevQualWhlSpdRight_Hz_M_f32single precision float040CLEARED_32
QualLevelLeft_Cnt_M_u161010CLEARED_16
QualLevelRight_Cnt_M_u161010CLEARED_16
QualErrAccLeft_Cnt_M_u161FULLFULLCLEARED_16
QualErrAccRight_Cnt_M_u161FULLFULLCLEARED_16

User defined typedef definition/declaration

This section documents any user types uniquely used for the module.

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

None

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

Constant Name
k_WhlSpdQPStep_Cnt_u16
k_WhlSpdQLimit_Cnt_u16
k_WhlSpdQNStep_Cnt_u16
t_FreqScaleTblX_Hz_u7p9
k_WhlSpdQualDiag_Cnt_Str

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionUnitsValue
D_WHLSPDMIN_HZ_F32single precision floatHz0
D_WHLSPDMAX_HZ_F32single precision floatHz40

Global

This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application.

Constant Name
<None>

Module specific Lookup Tables Constants

(This is for lookup tables (arrays) with fixed values, same name as other tables)

Constant NameResolutionValueSoftware Segment
None


Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library and functions / Macros that are called by the various sub modules are identified below,

  1. Limit_m

  2. Min_m

  3. FPM_FloatToFixed_m

  4. DiagPStep_m

  5. DiagNStep_m

  6. DiagFailed_m

Data Hiding Functions

  1. <None>

Global Functions/Macros Defined by this Module

Global Function #1

Function NameNoneTypeMinMaxUTP Tol.
Arguments Passed
Return Value

Description

(Place flowchart/design for local function)

Local Functions/Macros Used by this MDD only

Qualify Wheel Speed

Function NameQualifyWhlSpdTypeMinMaxUTP Tol.
Arguments PassedWhlSpd_Ptr_T_f32pointer to float32040
PrevQualWhlSpd_Ptr_T_f32pointer to float32040
WhlSpdValid_Cnt_T_lgcbooleanFALSETRUE
QualLevel_Ptr_T_u16pointer to uint16010
Return ValueN/A

Description

Wheel Speed In Range Check

Function NameWhlSpdInRangeTypeMinMaxUTP Tol.
Arguments PassedWhlSpd_Hz_T_f32float32040
Return ValueInRange_Cnt_T_lgcbooleanFALSETRUE0

Description

Wheel Speed Qualification Check

Function NameWhlSpdQualCheckTypeMinMaxUTP Tol.
Arguments PassedQualLevel_Cnt_T_u16uint16110
InRange_Cnt_T_lgcbooleanFALSETRUE
QualErrAcc_Ptr_T_u16pointer to uint16FULLFULL
Return ValueWhlSpdQualfied_Cnt_T_lgcBooleanFALSETRUE0

Description

Software Module Implementation

Runtime Environment (RTE) Initial Values

This section lists the initial values of data written by this module but controlled by the RTE. After RTE initialization, the data in this table will contain these values.

DataValue
SrlComLWhlSpdVld_Cnt_lgcFALSE
SrlComRWhlSpdVld_Cnt_lgcFALSE
SrlComLWhlSpd_Hz_f320
SrlComRWhlSpd_Hz_f320
QualWhlFreqL_Hz_f320
QualWhlFreqR_Hz_f320
WhlFreqQualified_Cnt_lgcTRUE

Initialization Functions

None


Periodic Functions

Per: _Per1

Design Rationale

None

Program Flow Start

Rte_Call_WIRInputQual_Per1_CP0_CheckpointReached()

Store Module Inputs to Local copies

WhlSpdLeftValid_Cnt_T_lgc = Rte_IRead_WIRInputQual_Per1_SrlComLWhlSpdVld_Cnt_lgc()

WhlSpdLeft_Hz_T_f32 = Rte_IRead_WIRInputQual_Per1_SrlComLWhlSpd_Hz_f32()

WhlSpdRightValid_Cnt_T_lgc = Rte_IRead_WIRInputQual_Per1_SrlComRWhlSpdVld_Cnt_lgc()

WhlSpdRight_Hz_T_f32 = Rte_IRead_WIRInputQual_Per1_SrlComRWhlSpd_Hz_f32()

Processing

Store Local copy of outputs into Module Outputs

Rte_IWrite_WIRInputQual_Per1_QualWhlFreqL_Hz_f32(WhlSpdLeft_Hz_T_f32)

Rte_IWrite_WIRInputQual_Per1_QualWhlFreqR_Hz_f32(WhlSpdRight_Hz_T_f32)

Rte_IWrite_WIRInputQual_Per1_WhlFreqQualified_Cnt_lgc(WhlFreqQualified_Cnt_T_lgc)

Program Flow End

Rte_Call_WIRInputQual_Per1_CP1_CheckpointReached()


Fault Recovery Functions

None


Shutdown Functions

None


Interrupt Functions

None


Serial Communication Functions

None


Execution Requirements

Execution Sequence of the Module

(Describe in words relevant details about the execution sequence of the different sub modules.)

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
WIRInputQual_Per12msALL

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
<None>


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment
WIRInputQual_Per1RTE_START_SEC_AP_WIRINPUTQUAL_APPL_CODE

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment
QualifyWhlSpdN/A (Inline with calling function)
WhlSpdInRangeN/A (Inline with calling function)
WhlSpdQualCheckN/A (Inline with calling function)


Known Issues / Limitations With Design

  1. Inline function defined in globalmacro.h are not unit tested


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11Initial version20-Feb-12LWW
22Checkpoints added11-Nov-12NRAR
Last modified October 12, 2025: Initial commit (0347a62)