This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

CtrldDisShtdn

CtrldDisShtdn

Component Documentation

Unit Test Plan

1 - Controller_Disable_MDD

Module -- Controlled Disable Shutdown

High-Level Description

The Controlled Disable Damping Shutdown method is used for torque sensor failures. When the torque sensor fails, an output torque is computed based on motor velocity to reduce the amount of “handwheel kick” perceived by the driver.

Figures

Component Diagram


Module Inputs and Outputs

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 Inputs (Global Variable Name)Module Outputs (Global Variable Name)
SumLimTrqCmd_MtrNm_f32CntDisMtrTrqCmdCRF_MtrNm_f32
CRFMtrVel_MtrRadpS_f32CtrldDmpCmp_Cnt_lgc
DiagStsF2Active_Cnt_lgcCntDisMtrTrqCmdMRF_MtrNm_f32
AssistAssyPolarity_Cnt_s08SysC_CRFMtrTrqCmd
SysC_MRFMtrTrqCmd

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
CntrlDampVelTrq_MtrNm_D_f32Single Precision Float-22002200CTRLDDISSHTDN_START_SEC_VAR_CLEARED_32
CntrlDampElpsdTime_mS_D_u161FULLFULLCTRLDDISSHTDN_START_SEC_VAR_CLEARED_16
LastF2Fault_mS_M_u32101000CTRLDDISSHTDN_START_SEC_VAR_CLEARED_32
CntrlDampTrq_MtrNm_D_f32Single Precision Float-5.755.75CTRLDDISSHTDN_START_SEC_VAR_CLEARED_32

User defined typedef definition/declaration

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

Variable NameTypedef NameStorage TypeSafety Critical Classification
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_F2Damping_MtrNmpRadpS_f32
k_CtrlDpVelThr_MtrRadpS_f32
k_CntrlDmpRampEnd_Uls_u8p8
k_MaxCtrlDmpLimit_MtrNm_f32
k_CtrlDmpTmrBkptOne_mS_u16
k_CtrlDmpTmrBkptTwo_mS_u16

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 NameResolutionValue
D_CNTRLDMPTMRSZ_CNT_U1612
D_CTRLDMPRES_MTRNM_F32Single Precision Floating Point0.007813

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
D_ZERO_ULS_F32

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
None

Software Module Implementation

Initialization Functions

None


Periodic Functions

Per: CntrlDisableShutdown_Per1

Design Rationale

This function is used to damp out handwheel “kick” in the event of a torque sensor fault (or any F2 fault). The design is such that either when the motor velocity is low OR when a time based multiplier has expired, the system will realize the action is complete and state changes can be made (states and modes).

The design takes into account that F2 type faults could be recoverable, so the “reset” feature is built into the design

Program Flow Start

Rte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReached()

Store Module Inputs to Local copies

Local Variables :

CRFMtrVelSign_T_f32

AbsCRFMtrVel_T_MtrRadpS_f32

CntrlDamp_VelTrq_T_f32

ElapsedTime_mS_T_u16

CntrlDmpMult_Uls_T_f32

CntrlDampComp_Cnt_T_lgc

DiagStsF2Active_Cnt_T_lgc

CntrlDamp_MtrNm_T_f32

AssistAssyPolarity_Cnt_T_s08

MRFMtrTrqCmd_MtrNm_T_f32

SysState_Cnt_T_Enum as Rte_ModeType_StaMd_Mode

SysState_Cnt_T_Enum = Rte_Mode_SystemState_Mode()

t_CtrlDmpTmrX_T_u16 [D_CNTRLDMPTMRSZ_CNT_U16] = { k_CtrlDmpTmrBkptOne_mS_f32, k_CtrlDmpTmrBkptTwo_mS_32}

t_CtrlDmpTmrY_T_u8P8 [D_CNTRLDMPTMRSZ_CNT_U16] = { FPM_InitFixedPoint_m(1.0,u8p8_T), k_CntrlDmpRampEnd_Uls_u8p8}

SumLimTrqCmd_MtrNm_T_f32 = Rte_IRead_CtrldDisShtdn_Per1_SumLimTrqCmd_MtrNm_f32()

CRFMtrVel_MtrRadpS_T_f32 = Rte_Iread_CtrldDisShtdn_Per1_CRFMtrVel_MtrRadpS_f32()

DiagStatus_Cnt_T_b32 = Rte_Iread_CtrldDisShtdn_Per1_DiagStsF2Active_Cnt_lgc()

AssistAssyPolarity_Cnt_T_s08 = Rte_IRead_CtrldDisShtdn_Per1_AssistAssyPolarity_Cnt_s08()

Compute Damping Torque

Controlled Damping Factor

Switch Output Control

Store Local copy of outputs into Module Outputs

Rte_Iwrite_CtrldDisShtdn_Per1_CntDisMtrTrqCmdCRF_MtrNm_f32(CRFMtrTrqCmd_MtrNm_T_f32)

Rte_Iwrite_CtrldDisShtdn_Per1_CtrldDmpStsCmp_Cnt_lgc(CntrlDampComp_Cnt_T_lgc)

Rte_IWrite_CtrldDisShtdn_Per1_CntDisMtrTrqCmdMRF_MtrNm_f32(MRFMtrTrqCmd_MtrNm_T_f32)

Rte_IWrite_CtrldDisShtdn_Per1_SysC_CRFMtrTrqCmd_MtrNm_f32(CRFMtrTrqCmd_MtrNm_T_f32)

Rte_IWrite_CtrldDisShtdn_Per1_SysC_MRFMtrTrqCmd_MtrNm_f32(MRFMtrTrqCmd_MtrNm_T_f32)

Program Flow End

Rte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReached()


Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Local Function/Macro Definitions

None


Execution Requirements

Execution Sequence of the Module

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameTask ListCalling FrequencySystem State(s) in which the function is called
CntrlDisableShutdown_Per12msWARMINIT, OPERATE, DISABLE

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
CntrlDisableShutdown__Per1RTE_START_SEC_AP_CTRLDDISSHTDN_APPL_CODE

Local Functions

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

Name of Sub ModuleSoftware Segment
None


Known Issues / Limitations With Design

  1. INLINE functions in GlobalMacro.h are not unit tested


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial release08Dec11M. Story
22.0Correcting values in t_CtrlDmpTmrY_T_u8P819Jan12M. Story
33.0Correcting values in t_CtrlDmpTmrY_T_u8P8 using FPM_InitFixedPoint_m19Jan12M. Story
44.0Corrected misspelled variable names.24Jan12M. Story
55.0Updates made as per FDD SF26 Ver00214May12NRAR
66.0Anom 3252 fix and Mode port added to make Trq zero if not in OPERATE State16 May 12NRAR
77.0Updated to SF-26 v0037-Jun-12OT
88.0Added watchdog checkpoints.16-Sept-12B WL
99.0Corrected Internal variable software segment type19-Sep-12SSK
1010Corrected for Watchdog naming error24-Sep-12Selva
1111Redundant storage of CRFMtrTrqCmd04-Oct-12NRAR
1212Redundant storage of MRFMtrTrqCmd12-Nov-12BWL

2 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

Controlled Disable Shutdown - Rev 11<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1.0M. Story8-Dec-11Initial Creation



2M. Story4-Jan-12Changed CntrlDmp cals to 16bit



3OT9-Jan-12Updated Template (v3.1)



4JJW12-Jan-12Removed calibration memory mapping because it is integration specific



5OT18-Jan-12Updated Template (Graph Settings)



6OT19-Jan-12Fixed Syntax Errors



7NRAR4-Oct-12FDD ver 005



11OT24-Jan-13Updated to SF-26 v006




































































































































































































































































































Sheet 2: Variable Dictionary

Controlled Disable Shutdown - Rev 11

IOMDN
Variable Information

YN










Range











Software Variable NameStandard Reference NameFDD ReferenceDescription[I]nput [O]uput [M]oduleInternal [D]isplay [N]onVolatileMemory UsageOEM1X, 1Y, 1Z, 1I, 1B 2X, 2Y, 2Z, 2I, 2B etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables




















SumLimTrqCmd_MtrNm_f32
SumLimTrqCmd
Output motor torque command after summing and limiting by the application. This is the normal commanded torque at the output under non fault conditions.I

0-8.88.8Single Precision Float
MtrNmfloat32







CRFMtrVel_MtrRadpS_f32Motor_Vel_CRF
Motor velocity in the motor reference frame (MRF)I

0-11001100Single Precision Float
MtrRadpSfloat32







DiagStsF2Active_Cnt_lgcDiag_Status

I

001N/A
Countsboolean







AssistAssyPolarity_Cnt_s08


I

0-111
Countssint8







CntDisMtrTrqCmdCRF_MtrNm_f32Torque_Cmd_CRFSF26 ControlledDisableShutdown
O

0-8.88.8Single Precision Float
MtrNmfloat32







CntDisMtrTrqCmdMRF_MtrNm_f32Torque_Cmd_MRFSF26 ControlledDisableShutdown
O

0-8.88.8Single Precision Float
MtrNmfloat32







CtrldDmpStsCmp_Cnt_lgcControlled_Damp_Status_CompleteSF26 ControlledDisableShutdown
O

001N/A
Countsboolean







CntrlDampVelTrq_MtrNm_D_f32CntrlDamp_VelTrqSF26 ControlledDisableShutdown
D

0-22002200Single Precision Float
MtrNmfloat32







CntrlDampElpsdTime_mS_D_u16ElapsedTimeSF26 ControlledDisableShutdown
D

0FULLFULL1
mSuint16







LastF2Fault_mS_M_u32
SF26 ControlledDisableShutdown
M

0010001
mSuint32







CntrlDampTrq_MtrNm_D_f32CntrlDampTrqSF26 ControlledDisableShutdown
D

0-5.755.75Single Precision Float
MtrNmfloat32







SysC_CRFMtrTrqCmd_MtrNm_f32CntDisMtrTrqCmd_CRFSF26 ControlledDisableShutdown
O

0-8.88.8Single Precision Float
MtrNmfloat32







SysC_MRFMtrTrqCmd_MtrNm_f32
SF26 ControlledDisableShutdown
O

0-8.88.8Single Precision Float
MtrNmfloat32






























































































































































































































































































































































































Sheet 3: Calibration Dictionary

Controlled Disable Shutdown - Rev 11


N
Calibration InformationAchieved in Software Design



Y








Range





P
Software Calibration NameStandard Reference NameFDD ReferenceDescriptionTuning SetOEM1X, 1Y, 1Z, 1I, 1B 2X, 2Y, 2Z, 2I, 2B etc Graph SettingsDefault ValueMinMaxUnitsTypeMemory Segment



Calibrations















k_F2Damping_MtrNmpRadpS_f32k_F2Damping_MtrNmpRadpSSF26 ControlledDisableShutdownControlled Damped Shutdown damping factorN

0.03602MtrNmpRadpSfloat32




k_CtrlDpVelThr_MtrRadpS_f32k_CtrlDpVelThr_MtrRadpSSF26 ControlledDisableShutdownMinimum motor velocity above which controlled disable operatesN

2.30700MtrRadpSfloat32




k_CntrlDmpRampEnd_Uls_u8p8k_CntrlDmpRampEnd_UlsSF26 ControlledDisableShutdownTuneable Ramp Scale value associated with CtrlDmpTmrBkptTwoN

001Ulsu8p8_T




k_MaxCtrlDmpLimit_MtrNm_f32k_MaxCtrlDmpLimit_MtrNmSF26 ControlledDisableShutdownMaximum allowed torque command from controlled disable functionN

305.75MtrNmfloat32




k_CtrlDmpTmrBkptOne_mS_u16k_CtrlDmpTmrBkptOne_mSSF26 ControlledDisableShutdownX value for tuning point 1 corresponding to a ramp scale factor of 1N

10001000mSuint16




k_CtrlDmpTmrBkptTwo_mS_u16k_CtrlDmpTmrBkptTwo_mSSF26 ControlledDisableShutdownX value for tuning point 2 corresponding to a ramp scale factor of CntrlDmpRampEndN

100001000mSuint16





Sheet 4: Global Constants

Controlled Disable Shutdown - Rev 11








































































Variable Information (Global Variables Only)

Achieved in Software DesignUsed in Module List





Layer 2Layer 3Layer 4Layer 5
Constant NameDescriptionUintsTypeEngineering ValueADCADC DiagnosticsData Memory VerificationDC Link Power ControlDSP Computational IntegrityDSP SPI driverEvent Manager DriverExternal Memory DriverFlash Programming ExecGPIOIllegal OpCode HandlerInterrupt HandlerMotor Current DriverMotor Driver DiagnosticsMotor Position DriverPhase Feedback CapturePowerdown ControlPrimary Shutdown ControlProgram FlowProgram Memory DiagnosticPWM Duty CycleRedundant Memory CheckRedundant Rapid ShutdownSchedulerStack MonitorState Dependent Task ListSystem Boot & StartupSystem ControlTemperature Sensor DiagnosticUnused Interrupt HandlerUtilization MonitorWatchdog DirverSmithBattery VoltageBattery Voltage DiagnosticsDiagnostic CTC ManagerDiagnostic ManagerDiagnostics Application ServicesEOL TorqueTestFlash Boot LoaderFlight RecorderHandwheel PositionHandwheel TorqueMotor Control Output ConversionMotor Position DiagnosticsMotor Position InitializationMotor VelocityMotor Velocity TachometerSerial Communications I/OSerial Communications ServicesStates and ModesTuning SelectVehicle Power ModeVehicle SpeedController PolarityCurrent EstimationHandwheel VelocityInverse Motor ModelMotor Temperature EstimationMotor Torque LimitOutput Reasonableness DianosticParameter EstimationQuadrant and rate DetectionActive Pull CompensationAssistDampingDuty CycleKinematic Integrity DiagnosticLong Term Vehicle Speed DiagnosticMax Assist LimitReturnState Output ControlTorque Output























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Sheet 5: Template

2.2aData File:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










EOL Constants:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










Global (Embedded) Constants:












Header:#define <NAME><COL40><VALUE>









A2L Name












Measurement:rte_<SWC>_<NAME>









Calibration Constants:












Tuning ID:



















Tuning:NIndex Range:










Header:extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>");
CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>;










eCal:<NAME>























Tuning:YIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>
























Tuning:PIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>

















Sheet 6: Help

Short cutMacroSescription
Ctrl-qClearDataDictFilterWill clear all autofilters on the Global Data Dictionary




DFD_CreateCreates a Series of Data Flow Worksheet Pages from the information in the data dictionary. If Data Flow Worksheet pages already exist, they will be deleted first.

DFD_DeleteWill clear all Data Flow Diagram pages from the Data Dictionary. This will make the file smaller for archiving.

DFD_PrintFormate and prepares to print the Data Flow Worksheet pages.

3 - CtrldDisShtdn


Overview

Unit Test Information
Module Definitions
Variable Range
CtrldDisShtdn_Per1
CtrldDisShtdn_Per1() B
CtrldDisShtdn_Per1() P
Test Vector Description


Sheet 1: Unit Test Information

1.0a






















Nexteer EPS Unit Test Tool






Rev:2.7b












Name of Tester:Rasika Deshpande
Source files to be added to the .pjt file Must include path from 'Source Code Directory' setting on the Unit Test Tool Options dialog Include Files:

Code File(s) Under Test:Ap_CtrldDisShtdn.c



Code File(s) Version:15



Module Design Document:Controller_Disable_MDD.docx



Module Design Document Version:13



Unit Test Plan Version:4



Optimization Level:Level 2



Compiler (CodeGen) Version:TM470_4.9.5



Model Type:Excel Macro



Model Version:




Special Test Requirements:




Test Date:4/28/2013



Comments:Note1:Inline functions defined in GlobalMacro.h are not unit tested.
Note2: Coverege is not 100% due to usage of "FPM_InitFixedPoint_m" macro




Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

CtrldDisShtdn_Per1CtrldDisShtdn_Per1() P----
7
38CtrldDisShtdn_Per1() B----
38










































































































































































































































































Sheet 2: Module Definitions









































Nexteer EPS Unit Test Tool












Rev:2.7b












Module Definitions
Module Test Functions
Module Set/Read Variables
Module Function Stubs
Return TypeNameParameter Prototype
ScopeTypeNameDefault Value
Return TypeNameParameter Prototype
voidCtrldDisShtdn_Per1(void)
GfloatCRFMtrVel_MtrRadpS_f32

Uint16DtrmnElapsedTime_mS_u16(void)




GfloatCntDisMtrTrqCmdMRF_MtrNm_f32

voidGetSystemTime_mS_u32(void)




GSint8AssistAssyPolarity_Cnt_s08

voidRte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReached(void)




MfloatCntrlDampVelTrq_MtrNm_D_f32

voidRte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReached(void)




GBooleanDiagStsF2Active_Cnt_lgc








GfloatCntDisMtrTrqCmdCRF_MtrNm_f32








GBooleanCtrldDmpStsCmp_Cnt_lgc









floatCntrlDampTrq_MtrNm_D_f32








MUINT32LastF2Fault_mS_M_u32









UINT16CntrlDampElpsdTime_mS_D_u16









floatk_F2Damping_MtrNmpRadpS_f32









floatk_CtrlDpVelThr_MtrRadpS_f32









u8p8k_CntrlDmpRampEnd_Uls_u8p8









floatk_MaxCtrlDmpLimit_MtrNm_f32









UINT16k_CtrlDmpTmrBkptOne_mS_u16









UINT16k_CtrlDmpTmrBkptTwo_mS_u16









Rte_ModeType_StaMd_Mode.Uint8Rte_Mode_SystemState_Mode








GfloatSysC_CRFMtrTrqCmd_MtrNm_f32








GfloatSysC_MRFMtrTrqCmd_MtrNm_f32








GfloatSumLimTrqCmd_MtrNm_f32





Sheet 3: Variable Range












































Nexteer EPS Unit Test Tool












Rev:2.7b
























Variable Range Definitions








Variable NameMax ValueMin Value








PostLimitTorque_MtrNm_f32










MRFMtrVel_MtrRadpS_f32










DiagStatus_Cnt_b32










AssistAssyPolarity_Cnt_s08










CRFTorqueCmd_MtrNm_f32










CntrlDampComp_Cnt_lgc










MRFMtrTrqCmd_MtrNm_f32










CntrlDamp_VelTrq_D_f32










DiagStsF2Active_Cnt_lgc










LastF2Fault_mS_M_u32










CRFMtrTrqCmd_MtrNm_f32










CtrldDmpStsCmp_Cnt_lgc










CRFMtrVel_MtrRadpS_f32










CntrlDamp_VelTrq_MtrNm_D_f32










CntrlDampTrq_MtrNm_D_f32










CntrlDampElpsdTime_mS_D_u16










k_F2Damping_MtrNmpRadpS_f32










k_CtrlDpVelThr_MtrRadpS_f32










k_CntrlDmpRampEnd_Uls_u8p8










k_MaxCtrlDmpLimit_MtrNm_f32










k_CtrlDmpTmrBkptOne_mS_u16










k_CtrlDmpTmrBkptTwo_mS_u16










Rte_Mode_SystemState_Mode










CntrlDampVelTrq_MtrNm_D_f32










SysC_CRFMtrTrqCmd_MtrNm_f32










SysC_MRFMtrTrqCmd_MtrNm_f32










CntDisMtrTrqCmdMRF_MtrNm_f32










CntDisMtrTrqCmdCRF_MtrNm_f32










SumLimTrqCmd_MtrNm_f32










CtrldDmpCmp_Cnt_lgc











Sheet 4: CtrldDisShtdn_Per1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations



Number Of Calibration Sets



Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
CtrldDisShtdn_Per1P7SumLimTrqCmd_MtrNm_f32CntDisMtrTrqCmdCRF_MtrNm_f32DtrmnElapsedTime_mS_u16
CtrldDisShtdn_Per1B38CRFMtrVel_MtrRadpS_f32CntDisMtrTrqCmdMRF_MtrNm_f32GetSystemTime_mS_u32



DiagStsF2Active_Cnt_lgcCtrldDmpStsCmp_Cnt_lgcRte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReached



AssistAssyPolarity_Cnt_s08SysC_CRFMtrTrqCmd_MtrNm_f32Rte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReached



k_F2Damping_MtrNmpRadpS_f32SysC_MRFMtrTrqCmd_MtrNm_f32



k_CtrlDpVelThr_MtrRadpS_f32




k_CntrlDmpRampEnd_Uls_u8p8




k_MaxCtrlDmpLimit_MtrNm_f32




k_CtrlDmpTmrBkptOne_mS_u16




k_CtrlDmpTmrBkptTwo_mS_u16




Rte_Mode_SystemState_Mode


Sheet 5: CtrldDisShtdn_Per1() B

CtrldDisShtdn_Per1TS--






























BI/PI/P2I/P3I/P4I/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
O/PO/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Func Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionSumLimTrqCmd_MtrNm_f32CRFMtrVel_MtrRadpS_f32DiagStsF2Active_Cnt_lgcAssistAssyPolarity_Cnt_s08k_F2Damping_MtrNmpRadpS_f32k_CtrlDpVelThr_MtrRadpS_f32k_CntrlDmpRampEnd_Uls_u8p8k_MaxCtrlDmpLimit_MtrNm_f32k_CtrlDmpTmrBkptOne_mS_u16k_CtrlDmpTmrBkptTwo_mS_u16Rte_Mode_SystemState_ModeDtrmnElapsedTime_mS_u16CntDisMtrTrqCmdCRF_MtrNm_f32CntDisMtrTrqCmdMRF_MtrNm_f32CtrldDmpStsCmp_Cnt_lgcSysC_CRFMtrTrqCmd_MtrNm_f32SysC_MRFMtrTrqCmd_MtrNm_f32DtrmnElapsedTime_mS_u16GetSystemTime_mS_u32Rte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReachedRte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReachedCntDisMtrTrqCmdCRF_MtrNm_f32CntDisMtrTrqCmdMRF_MtrNm_f32CtrldDmpStsCmp_Cnt_lgcSysC_CRFMtrTrqCmd_MtrNm_f32SysC_MRFMtrTrqCmd_MtrNm_f32DtrmnElapsedTime_mS_u16GetSystemTime_mS_u32Rte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReachedRte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReachedP/FCPU Cycles
1SumLimTrqCmd_MtrNm_f32 = min-8.8211-10.150.11151006789------------------001001011--

2SumLimTrqCmd_MtrNm_f32 = max8.8-34110.2100.22252015678------------------001001011--

3SumLimTrqCmd_MtrNm_f32 = zero0551-10.3150.33353024567------------------001001011--

4SumLimTrqCmd_MtrNm_f32 = pos5.5100110.4200.44454033456------------------001001011--

5SumLimTrqCmd_MtrNm_f32 = neg-5.59041-10.5250.55555042345------------------001001011--

6SumLimTrqCmd_MtrNm_f32 = min1.2-1100110.6300.61.1656021234------------------001001011--

7SumLimTrqCmd_MtrNm_f32 = max2.311000-10.7350.71.27570110000------------------000000111--

8SumLimTrqCmd_MtrNm_f32 = zero6.30110.8400.81.3858039000------------------001001011--

9SumLimTrqCmd_MtrNm_f32 = neg-5.4-5670-10.9450.91.4959028000-------------------5.45.40-5.45.40111--

10SumLimTrqCmd_MtrNm_f32 = pos1.76661115011.510510027000------------------001001011--

11DiagStsF2Active_Cnt_lgc = FALSE-7.9-3450-11.1550.11.611511006000------------------000000111--

12DiagStsF2Active_Cnt_lgc = TRUE4.567111.2600.21.712512015000------------------001001011--

13AssistAssyPolarity_Cnt_s08 = min6.71111-11.3650.31.813513024000------------------001001011--

14AssistAssyPolarity_Cnt_s08 = max-3.3-255111.4700.41.914514033000------------------001001011--

15AssistAssyPolarity_Cnt_s08 = zero6.9786001.5750.5215515022000------------------6.9006.900111--

16k_F2Damping_MtrNmpRadpS_f32=min-1.2345110800.62.116516001000------------------001001011--

17k_F2Damping_MtrNmpRadpS_f32=max3.4-780-12850.72.21751702900------------------3.4-3.403.4-3.40111--

18k_F2Damping_MtrNmpRadpS_f32=pos5.866111900.82.31851804800------------------001001011--

19k_CtrlDpVelThr_MtrRadpS_f32=min-7.1-180-11.600.92.41951902700-------------------7.17.10-7.17.10111--

20k_CtrlDpVelThr_MtrRadpS_f32=max1.2390111.770012.52052000600------------------001001011--

21k_CtrlDpVelThr_MtrRadpS_f32=pos2.3-560-11.86660.12.62152102500------------------2.3-2.302.3-2.30111--

22k_CntrlDmpRampEnd_Uls_u8p8=min6.3434111.910002.72252201400------------------001001011--

23k_CntrlDmpRampEnd_Uls_u8p8=max-5.4-400-1220012.82352302300-------------------5.45.40-5.45.40111--

24k_CntrlDmpRampEnd_Uls_u8p8=pos1.750110.13000.52.92452403200------------------000001011--

25k_MaxCtrlDmpLimit_MtrNm_f32=min-7.9700-10.24000.102552502100-------------------7.97.90-7.97.90111--

26k_MaxCtrlDmpLimit_MtrNm_f32=max4.5-90110.35000.25.752652604189------------------000001011--

27k_MaxCtrlDmpLimit_MtrNm_f32=pos6.71010-10.46000.312752702345------------------6.7-6.706.7-6.70111--

28k_CtrlDmpTmrBkptOne_mS_u16=min-3.3-123110.52340.43.102800786------------------001001011--

29k_CtrlDmpTmrBkptOne_mS_u16=max6.9550-10.660.53.21000290234------------------6.9-6.906.9-6.90111--

30k_CtrlDmpTmrBkptOne_mS_u16=pos-1.236110.71980.63.34503004121------------------000001011--

31k_CtrlDmpTmrBkptTwo_mS_u16=min3.4790-10.8280.73.428502208------------------001000111--

32k_CtrlDmpTmrBkptTwo_mS_u16=max5.8-23110.91110.83.529510001656------------------001001011--

33k_CtrlDmpTmrBkptTwo_mS_u16=pos-7.1470-112050.93.63052342666-------------------7.17.10-7.17.10111--

34DtrmnElapsedTime_mS_u16 = min2.288111.16613.73154330------------------000001011--

35DtrmnElapsedTime_mS_u16 = max-4.8-6400-11.268003.8325188265535-------------------4.84.80-4.84.80111--

36DtrmnElapsedTime_mS_u16 = mid-3.710111.3530.53.93357031000------------------001001011--

37All min-8.8-11000-100000000------------------001000111--

38All max8.8110011270015.7510001000465535------------------001001011--
































































































































































































































































































































































Sheet 6: CtrldDisShtdn_Per1() P

CtrldDisShtdn_Per1TS--






























PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
O/PO/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Func Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionSumLimTrqCmd_MtrNm_f32CRFMtrVel_MtrRadpS_f32DiagStsF2Active_Cnt_lgcAssistAssyPolarity_Cnt_s08k_F2Damping_MtrNmpRadpS_f32k_CtrlDpVelThr_MtrRadpS_f32k_CntrlDmpRampEnd_Uls_u8p8k_MaxCtrlDmpLimit_MtrNm_f32k_CtrlDmpTmrBkptOne_mS_u16k_CtrlDmpTmrBkptTwo_mS_u16Rte_Mode_SystemState_ModeDtrmnElapsedTime_mS_u16CntDisMtrTrqCmdCRF_MtrNm_f32CntDisMtrTrqCmdMRF_MtrNm_f32CtrldDmpStsCmp_Cnt_lgcSysC_CRFMtrTrqCmd_MtrNm_f32SysC_MRFMtrTrqCmd_MtrNm_f32DtrmnElapsedTime_mS_u16GetSystemTime_mS_u32Rte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReachedRte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReachedCntDisMtrTrqCmdCRF_MtrNm_f32CntDisMtrTrqCmdMRF_MtrNm_f32CtrldDmpStsCmp_Cnt_lgcSysC_CRFMtrTrqCmd_MtrNm_f32SysC_MRFMtrTrqCmd_MtrNm_f32DtrmnElapsedTime_mS_u16GetSystemTime_mS_u32Rte_Call_CtrldDisShtdn_Per1_CP0_CheckpointReachedRte_Call_CtrldDisShtdn_Per1_CP1_CheckpointReachedP/FCPU Cycles
1if(TRUE == DiagStsF2Active_Cnt_T_lgc)=>TRUE,
if(ElapsedTime_mS_T_u16 > k_CtrlDmpTmrBkptTwo_mS_u16)=>TRUE
-8.8211-10.150.11151006789------------------001001011--

2if( (SysState_Cnt_T_Enum != RTE_MODE_StaMd_Mode_OPERATE)=>FALSE ||
(CntrlDampComp_Cnt_T_lgc == TRUE)=>TRUE )
0551-10.3150.33353024567------------------001001011--

3if(TRUE == DiagStsF2Active_Cnt_T_lgc)=>FALSE,
if(ElapsedTime_mS_T_u16 > k_CtrlDmpTmrBkptTwo_mS_u16)=>FALSE
2.311000-10.7350.71.27570110000------------------000000111--

4if( (SysState_Cnt_T_Enum != RTE_MODE_StaMd_Mode_OPERATE)=>FALSE ||
(CntrlDampComp_Cnt_T_lgc == TRUE)=>FALSE ),
else if( TRUE == DiagStsF2Active_Cnt_T_lgc )=>FALSE
-5.4-5670-10.9450.91.4959028000-------------------5.45.40-5.45.40111--

5if( (ElapsedTime_mS_T_u16 >= k_CtrlDmpTmrBkptTwo_mS_u16)=>FALSE ||
( (ElapsedTime_mS_T_u16 > k_CtrlDmpTmrBkptOne_mS_u16)=>TRUE&&
(AbsCRFMtrVel_T_MtrRadpS_f32 < k_CtrlDpVelThr_MtrRadpS_f32) )=>TRUE )
5.8-23110.91110.83.529510001656------------------001001011--

6if( (ElapsedTime_mS_T_u16 >= k_CtrlDmpTmrBkptTwo_mS_u16)=>FALSE ||
( (ElapsedTime_mS_T_u16 > k_CtrlDmpTmrBkptOne_mS_u16) =>TRUE &&
(AbsCRFMtrVel_T_MtrRadpS_f32 < k_CtrlDpVelThr_MtrRadpS_f32) )=>FALSE )
5.8-23110.9200.83.529510001656------------------000001011--

7else if( TRUE == DiagStsF2Active_Cnt_T_lgc )=>TRUE-5.4-5670-10.9450.91.49590210-------------------5.45.40-5.45.40111--
































































































































































































































































































































































Sheet 7: Test Vector Description













Nexteer EPS Unit Test Tool





Rev:2.7b





Test Setup SheetTest FunctionTest TypeVector NumberVector Description