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

Return to the regular view of this page.

Tuning Select Authority

Tuning Select Authority

Component Documentation

Unit Test Plan

1 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

TuningSelectAuthority - Rev 4<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1.0VK3-Jul-12Initial Creation (stub)



2VK12-Jul-12Updates to add FDD referance name



3LWW28-Jul-12Changes to add new design



4LWW3-Aug-12Updates to I/O




































































































































































































































































































































Sheet 2: Variable Dictionary

TuningSelectAuthority - Rev 4

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, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables




















HwTorque_HwNm_f32Hw_Torque
Handwheel torque measured inputIN
0-1010Single Precision Float
HwNmfloat32







VehicleSpeed_Kph_f32Vehicle_Speed
Conditioned vehicle speed from serial communications busIN
00511Single Precision Float
Kphfloat32







DesiredTunPers_Cnt_u16DesiredTunPers

IN
001001
Cntuint16







DesiredTunSet_Cnt_u16DesiredTunSet

IN
001001
Cntuint16







TunPer_Ptr_Str
SF23 TuningSelectAuthority
ON
0FULLFULL10.00E+00CntTUNING_P_Str*







TunSet_Ptr_Str
SF23 TuningSelectAuthority
ON
0FULLFULL10.00E+00CntTUNING_Y_Str*







ActiveTunPers_Cnt_u16ActiveTunPersSF23 TuningSelectAuthority
ON
0010010.00E+00Cntuint16







ActiveTunSet_Cnt_u16ActiveTunSetSF23 TuningSelectAuthority
ON
0010010.00E+00Cntuint16







HwTrqLPFiltSV_HwNm_M_strHwTrqLPFiltSVSF23 TuningSelectAuthority
MN
{0,0}

Single Precision Float{SV: 7.81E-03, K: 1.52E-05}HwNmLPF32KSV







PrevTunSet_Cnt_M_u16
SF23 TuningSelectAuthority
MN
0010010.00E+00Cntuint16







PrevTunPers_Cnt_M_u16
SF23 TuningSelectAuthority
MN
0010010.00E+00Cntuint16






































































































































































































































































































































































































































































































































































































































































Sheet 3: Calibration Dictionary

TuningSelectAuthority - Rev 4


N
Calibration InformationAchieved in Software Design



Y








Range





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



Calibrations















k_TunSelHwTrqLPFKn_Hz_f32TunSel_k_HwTrqLPFKn_HzSF23 TuningSelectAuthorityLow pass filter cutoff frequencyNN
5150Hzfloat32




k_TunSelHwTrqThresh_HwNm_f32TunSel_k_HwTrqThresh_HwNmSF23 TuningSelectAuthorityHandwheel torque threshold valueNN
2010HwNmfloat32




k_TunSelVehSpdThresh_Kph_f32TunsSel_k_VehSpdThresh_KphSF23 TuningSelectAuthorityVehicle speed threshold valueNN
1000255Kphfloat32





Sheet 4: Global Constants

TuningSelectAuthority - Rev 4








































































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
D_TRUE_CNT_LGC
Countsboolean1








































































D_FALSE_CNT_LGC
Countsboolean0



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































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:extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>;









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










eCal:<NAME>























Tuning:PIndex Range:










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









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










eCal:<NAME>
















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.

2 - Tuning_Select_Authority_MDD

Module – Tuning Select Authority

High-Level Description

This function broadcasts an authority to allow switching between calibration subsets while driving. It compares handwheel torque and vehicle speed to calibratable thresholds and outputs either a zero or a one.

Figures

Component Diagram

TunSel.tif


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
HwTorque_HwNm_f32ActiveTunPers_Cnt_u16
VehicleSpeed_Kph_f32ActiveTunSet_Cnt_u16
DesiredTunPers_Cnt_u16TunPer_Ptr_Str *
DesiredTunSet_Cnt_u16TunSet_Ptr_Str *

* Note: For unit testing purposes these inputs are defined as pointers to uint16 (as opposed to pointers to tuning structures) for simplicity.

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
*HwTrqLPFiltSV_HwNm_M_strMultipleMultipleMultipleTUNINGSELAUTH_START_SEC_VAR_CLEARED_UNSPECIFIED
  • K_Uls_f32

Single Precision Float0.01248774350.4665119090
  • SV_HwNm_f32

Single Precision Float-1010
PrevTunSet_Cnt_M_u1610100TUNINGSELAUTH_START_SEC_VAR_CLEARED _16
PrevTunPers_Cnt_M_u1610100TUNINGSELAUTH_START_SEC_VAR_CLEARED _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_TunSelHwTrqThresh_HwNm_f32
k_TunSelVehSpdThresh_Kph_f32
k_TunSelHwTrqLPFKn_Hz_f32

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_10MS_SEC_F32Single Precision FloatSec0.010

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_TRUE_CNT_LGC
D_FALSE_CNT_LGC
T_TunSetSelectionTbl_Ptr_Str[] *
T_TunPersSelectionTbl_Ptr_Str[][] *

* Note: For unit testing purposes, these arrays of pointers are of size [3] and [3][5] respectively and are defined as pointers to uint16 (as opposed to pointers to tuning structures) for simplicity.

Module specific Lookup Tables Constants

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. Abs_f32_m

  2. LPF_OpUpdate_f32_m

  3. LPF_KUpdate_f32_m

Data Hiding Functions

  1. <None>

Global Functions/Macros Defined by this Module

None

Local Functions/Macros Used by this MDD only

None

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
HwTorque_HwNm_f320
VehicleSpeed_Kph_f320
DesiredTunPers_Cnt_u160
DesiredTunSet_Cnt_u160
ActiveTunPers_Cnt_u160
ActiveTunSet_Cnt_u160

Initialization Functions

Init: TuningSelAuth_Init1

Design Rationale

LPF_KUpdate_f32 is used to initialize the LPF filter instead of the full LPF_Init_f32 macro as an optimization since the required initial state of the filter is 0, which is the initialized value of the RAM, so there is no need to explicitly initialize the state variables in this init function.

Initialize Low Pass Filters

Periodic Functions

Per: TuningSelAuth_Per1

Design Rationale

Program Flow Start

Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached() Store Module Inputs to Local copies

See below section

Description

Store Local copy of outputs into Module Outputs

See above section

Program Flow End

Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached()


Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Function

None

Transition Functions

None


Execution Requirements

Execution Sequence of the Module

If something besides the defaults of “0” for desired tuning set and desired personality are required at poweron, Init1 must run after the init function that provides these initial values.

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
TuningSelAuth_Init1Once at StartupCOLDINIT
TuningSelAuth_Per110 msALL

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
TuningSelAuth _Init1RTE_START_SEC_AP_TUNINGSELAUTH_APPL_CODE
TuningSelAuth_Per1RTE_START_SEC_AP_TUNINGSELAUTH_APPL_CODE

Local Functions

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

Name of Sub ModuleSoftware Segment


Known Issues / Limitations With Design

  1. INLINE functions defined in “GlobalMacro.h” are not unit tested

  2. The FDD indicates that this module will store the EEPROM value for tuning set, however, this implementation doesn’t provide this block. Instead, it is assumed that some other module will contain the tuning selection block. This was done to enable programs that don’t have multiple tuning sets to just use the default “0” without having to manage an EEPROM block.


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial MDD implementing FDD SF-23 v00103Jul12VK
12.0Updates to provide the switching of tuning sets and personalities03/08/12LWW
23.0Added checkpoints and memmap software segment is updated for static variables24-Sep-12Selva
34.0Updated trigger rate for Per124-Oct-12BWL

3 - TuningSelAuth_UnitTestReports


Overview

Unit Test Information
Module Definitions
Variable Range
TuningSelAuth_Init1
TuningSelAuth_Init1() p
TuningSelAuth_Init1() b
TuningSelAuth_Per1
TuningSelAuth_Per1() b
TuningSelAuth_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_TuningSelAuth.c



Code File(s) Version:4



Module Design Document:Tuning_Select_Authority_MDD.docx



Module Design Document Version:4



Unit Test Plan Version:2



Optimization Level:Level 2



Compiler (CodeGen) Version:TMS470_4.9.5



Model Type:Excel Macro



Model Version:1



Special Test Requirements:NOTE: To display address updated in "TunPer_Ptr_Str" pointer from "T_TunPersSelectionTbl_Ptr_Str[] []", "TunPer_Ptr_Str" is taken in "In" and "Out" and value of "T_TunPersSelectionTbl_Ptr_Str[] []"will be given as input to “TunPer_Ptr_Str” which will reflect in output for each of the vector.



Test Date:1/16/2013



Comments:NOTE : Inline function defined in GlobalMacro.h are not Unit Tested.




Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

TuningSelAuth_Init1TuningSelAuth_Init1() b----
25
2TuningSelAuth_Init1() p----
2






TuningSelAuth_Per1TuningSelAuth_Per1() p----
5
42TuningSelAuth_Per1() b----
42
























































































































































































































































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
voidTuningSelAuth_Init1(void)
GfloatHwTorque_HwNm_f32

voidRte_Call_TuningSelAuth_Per1_CP0_CheckpointReached(void)
voidTuningSelAuth_Per1(void)
GfloatVehicleSpeed_Kph_f32

voidRte_Call_TuningSelAuth_Per1_CP1_CheckpointReached(void)




MLPF32KSV_Str.floatHwTrqLPFiltSV_HwNm_M_str.K

uint8TableSize_m(void)




MLPF32KSV_Str.floatHwTrqLPFiltSV_HwNm_M_str.SV

uint8TableSize1_m(void)





floatk_TunSelHwTrqThresh_HwNm_f32









floatk_TunSelVehSpdThresh_Kph_f32









floatk_TunSelHwTrqLPFKn_Hz_f32









UINT16DesiredTunPers_Cnt_u16









UINT16DesiredTunSet_Cnt_u16









UINT16ActiveTunPers_Cnt_u16









UINT16ActiveTunSet_Cnt_u16









UINT16PrevTunSet_Cnt_M_u16









UINT16PrevTunPers_Cnt_M_u16









UINT16TunPer_Ptr_Str









UINT16TunSet_Ptr_Str









UINT16T_TunPersSelectionTbl1_Ptr_Str[5]









UINT16T_TunPersSelectionTbl2_Ptr_Str[5]









UINT16T_TunPersSelectionTbl3_Ptr_Str[5]









UINT16T_TunSetSelectionTbl_Ptr_Str[3]





Sheet 3: Variable Range












































Nexteer EPS Unit Test Tool












Rev:2.7b
























Variable Range Definitions








Variable NameMax ValueMin Value








HwTorque_HwNm_f32










VehicleSpeed_Kph_f32










TunSelAuthority_Cnt_lgc










HwTrqLPFiltSV_HwNm_M_str.K










HwTrqLPFiltSV_HwNm_M_str.SV










k_TunSelHwTrqThresh_HwNm_f32










k_TunSelVehSpdThresh_Kph_f32










k_TunSelHwTrqLPFKn_Hz_f32










DesiredTunPers_Cnt_u16










DesiredTunSet_Cnt_u16










ActiveTunPers_Cnt_u16










ActiveTunSet_Cnt_u16










PrevTunSet_Cnt_M_u16










PrevTunPers_Cnt_M_u16










TunPer_Ptr_Str










TunSet_Ptr_Str










T_TunPersSelectionTbl1_Ptr_Str[5]










T_TunPersSelectionTbl2_Ptr_Str[5]










T_TunPersSelectionTbl3_Ptr_Str[5]










T_TunSetSelectionTbl_Ptr_Str[3]











Sheet 4: TuningSelAuth_Init1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
TuningSelAuth_Init1b25HwTrqLPFiltSV_HwNm_M_str.SVHwTrqLPFiltSV_HwNm_M_str.KTableSize_m
TuningSelAuth_Init1p2HwTrqLPFiltSV_HwNm_M_str.KTunPer_Ptr_StrTableSize1_m



k_TunSelHwTrqLPFKn_Hz_f32TunSet_Ptr_Str



DesiredTunPers_Cnt_u16ActiveTunPers_Cnt_u16



DesiredTunSet_Cnt_u16ActiveTunSet_Cnt_u16



T_TunPersSelectionTbl1_Ptr_Str[5]PrevTunPers_Cnt_M_u16



T_TunPersSelectionTbl2_Ptr_Str[5]PrevTunSet_Cnt_M_u16



T_TunPersSelectionTbl3_Ptr_Str[5]




T_TunSetSelectionTbl_Ptr_Str[3]




TunPer_Ptr_Str




TunSet_Ptr_Str


Sheet 5: TuningSelAuth_Init1() p

TuningSelAuth_Init1TS--































pI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/PO/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionHwTrqLPFiltSV_HwNm_M_str.SVHwTrqLPFiltSV_HwNm_M_str.Kk_TunSelHwTrqLPFKn_Hz_f32DesiredTunPers_Cnt_u16DesiredTunSet_Cnt_u16T_TunPersSelectionTbl1_Ptr_Str[5]T_TunPersSelectionTbl2_Ptr_Str[5]T_TunPersSelectionTbl3_Ptr_Str[5]T_TunSetSelectionTbl_Ptr_Str[3]TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.KTunPer_Ptr_StrTunSet_Ptr_StrActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.KTunPer_Ptr_StrTunSet_Ptr_StrActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TableSize_mTableSize1_mP/FCPU Cycles
1if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>FALSE,
if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>TRUE
-100.0156201102589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.71539045666397125892589101011--

2if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>TRUE,
if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>FALSE
-10.08155012589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.61033886262465325892589010111--










































































































































































































































































































































































Sheet 6: TuningSelAuth_Init1() b

TuningSelAuth_Init1TS--































bI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/PO/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionHwTrqLPFiltSV_HwNm_M_str.SVHwTrqLPFiltSV_HwNm_M_str.Kk_TunSelHwTrqLPFKn_Hz_f32DesiredTunPers_Cnt_u16DesiredTunSet_Cnt_u16T_TunPersSelectionTbl1_Ptr_Str[5]T_TunPersSelectionTbl2_Ptr_Str[5]T_TunPersSelectionTbl3_Ptr_Str[5]T_TunSetSelectionTbl_Ptr_Str[3]TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.KTunPer_Ptr_StrTunSet_Ptr_StrActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.KTunPer_Ptr_StrTunSet_Ptr_StrActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TableSize_mTableSize1_mP/FCPU Cycles
1HwTrqLPFiltSV_HwNm_M_str.SV = min-100.0156201102589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.71539045666397125892589101011--

2HwTrqLPFiltSV_HwNm_M_str.SV = max100.1302204523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45234523452353------------------0.84816419801935145234523202011--

3HwTrqLPFiltSV_HwNm_M_str.SV = zero00.2403309874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98749874987453------------------0.91899740784205798749874303011--

4HwTrqLPFiltSV_HwNm_M_str.SV = pos10.354407412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74127412741253------------------0.26959730895135474127412404011--

5HwTrqLPFiltSV_HwNm_M_str.SV = neg-10.08155012589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.61033886262465325892589010111--

6HwTrqLPFiltSV_HwNm_M_str.K = min20.0124877435256024523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45234523452353------------------0.79212042364923845234523020211--

7HwTrqLPFiltSV_HwNm_M_str.K = max-20.466511909357039874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98749874987453------------------0.88909872163580598749874000011--

8HwTrqLPFiltSV_HwNm_M_str.K = mid30.013458047412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74127412741253------------------0.94083548870592274127412000011--

9k_TunSelHwTrqLPFKn_Hz_f32 = min-30.09190902589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.060898632575707425892589000011--

10k_TunSelHwTrqLPFKn_Hz_f32 = max40.01755055554523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45234523452353------------------0.95678608173622845234523000011--

11k_TunSelHwTrqLPFKn_Hz_f32 = mid-40.01891065659874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98749874987453------------------0.46651190890889798749874000011--

12DesiredTunPers_Cnt_u16 = min50.0258150147412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74127412741253------------------0.61033886262465374127412000011--

13DesiredTunPers_Cnt_u16 = max-50.03698726100852589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25892589258953------------------0.80478000558941725892589000011--

14DesiredTunPers_Cnt_u16 = mid60.043420964523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45234523452353------------------0.88190702067832345234523000011--

15DesiredTunSet_Cnt_u16 = min-60.01347109874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98749874987453------------------0.94782214429830298749874101011--

16DesiredTunSet_Cnt_u16 = max70.0152821007412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74127412741253------------------0.82783326565800174127412202011--

17DesiredTunSet_Cnt_u16 = mid-70.016393504523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45232589,2589,25894523258953------------------0.91374457010949645232589303011--

18T_TunPersSelectionTbl_Ptr_Str[5] = min80.02518410,0,0,0,02589,2589,2589,2589,25892589,2589,2589,2589,25894523,4523,45232589452353------------------0.67728101673295125894523414111--

19T_TunPersSelectionTbl_Ptr_Str[5] = max80.0381648265535,65535,65535,65535,655354523,4523,4523,4523,45234523,4523,4523,4523,45239874,9874,98744523987453------------------0.63406869305870745239874020211--

20T_TunPersSelectionTbl_Ptr_Str[5] = mid90.04220693500,500,500,500,5009874,9874,9874,9874,98749874,9874,9874,9874,98747412,7412,7412500741253------------------0.7153904566639715007412000011--

21T_TunSetSelectionTbl_Ptr_Str[3] = min-90.0156303642589,2589,2589,2589,25890,0,0,0,02589,2589,2589,2589,25890,0,02589053------------------0.84816419801935125890000011--

22T_TunSetSelectionTbl_Ptr_Str[3] = max10.14025254523,4523,4523,4523,452365535,65535,65535,65535,655354523,4523,4523,4523,452365535,65535,6553545236553553------------------0.918997407842057452365535000011--

23T_TunSetSelectionTbl_Ptr_Str[3] = mid20.22514149874,9874,9874,9874,9874500,500,500,500,5009874,9874,9874,9874,9874500,500,500987450053------------------0.7921204236492389874500000011--

24All Min-100.01248774351000,0,0,0,00,0,0,0,00,0,0,0,00,0,00053------------------0.060898632575707400000011--

25All Max100.4665119095010010065535,65535,65535,65535,6553565535,65535,65535,65535,6553565535,65535,65535,65535,6553565535,65535,65535655356553553------------------0.9567860817362286553565535000011--










































































































































































































































































































































































Sheet 7: TuningSelAuth_Per1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
TuningSelAuth_Per1p5HwTorque_HwNm_f32HwTrqLPFiltSV_HwNm_M_str.SVTableSize_m
TuningSelAuth_Per1b42VehicleSpeed_Kph_f32ActiveTunPers_Cnt_u16TableSize1_m



HwTrqLPFiltSV_HwNm_M_str.SVActiveTunSet_Cnt_u16Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached



HwTrqLPFiltSV_HwNm_M_str.KPrevTunPers_Cnt_M_u16Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached



k_TunSelHwTrqThresh_HwNm_f32PrevTunSet_Cnt_M_u16



k_TunSelVehSpdThresh_Kph_f32TunPer_Ptr_Str



T_TunPersSelectionTbl1_Ptr_Str[5]TunSet_Ptr_Str



T_TunPersSelectionTbl2_Ptr_Str[5]




T_TunPersSelectionTbl3_Ptr_Str[5]




T_TunSetSelectionTbl_Ptr_Str[3]




PrevTunSet_Cnt_M_u16




PrevTunPers_Cnt_M_u16




DesiredTunSet_Cnt_u16




DesiredTunPers_Cnt_u16




TunPer_Ptr_Str




TunSet_Ptr_Str


Sheet 8: TuningSelAuth_Per1() b

TuningSelAuth_Per1TS--








































bI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/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
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionHwTorque_HwNm_f32VehicleSpeed_Kph_f32HwTrqLPFiltSV_HwNm_M_str.SVHwTrqLPFiltSV_HwNm_M_str.Kk_TunSelHwTrqThresh_HwNm_f32k_TunSelVehSpdThresh_Kph_f32T_TunPersSelectionTbl1_Ptr_Str[5]T_TunPersSelectionTbl2_Ptr_Str[5]T_TunPersSelectionTbl3_Ptr_Str[5]T_TunSetSelectionTbl_Ptr_Str[3]PrevTunSet_Cnt_M_u16PrevTunPers_Cnt_M_u16DesiredTunSet_Cnt_u16DesiredTunPers_Cnt_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.SVActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mRte_Call_TuningSelAuth_Per1_CP0_CheckpointReachedRte_Call_TuningSelAuth_Per1_CP1_CheckpointReachedHwTrqLPFiltSV_HwNm_M_str.SVActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mRte_Call_TuningSelAuth_Per1_CP0_CheckpointReachedRte_Call_TuningSelAuth_Per1_CP1_CheckpointReachedP/FCPU Cycles
1HwTorque_HwNm_f32 = min-106020.01561332589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25891111333353----------------------1.8128111133330011--

2HwTorque_HwNm_f32 = max1070-20.12684523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45232222686853-----------------------0.8222268680011--

3HwTorque_HwNm_f32 = zero08030.231999874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,987413339874987453----------------------2.43131987498741111--

4HwTorque_HwNm_f32 = pos190-30.34257412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74122144252553-----------------------1.8121225250011--

5HwTorque_HwNm_f32 = neg-110040.08512589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,258912551153----------------------3.62121110011--

6VehicleSpeed_Kph_f32 = min20-40.096734523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,452323664523452353-----------------------3.463232452345231111--

7VehicleSpeed_Kph_f32 = max-251150.097469874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98741177464653----------------------4.37111146460011--

8VehicleSpeed_Kph_f32 = mid350-50.01758117412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74122288111153-----------------------4.86222211110011--

9HwTrqLPFiltSV_HwNm_M_str.SV = min-333-100.018991232589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589139912312353-----------------------9.867731311231230011--

10HwTrqLPFiltSV_HwNm_M_str.SV = max468100.02031.2274523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523211010272753----------------------9.8782121227270011--

11HwTrqLPFiltSV_HwNm_M_str.SV = zero-419900.02171.3969874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874122020969653-----------------------0.0868212196960011--

12HwTrqLPFiltSV_HwNm_M_str.SV = pos52510.02311.4817412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74122330307412741253----------------------1.09243232741274121111--

13HwTrqLPFiltSV_HwNm_M_str.SV = neg-51-10.02451.5532589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25891140402589258953-----------------------1.0981111258925891111--

14HwTrqLPFiltSV_HwNm_M_str.K = min67390.01248774351.6444523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523225050444453----------------------8.9625367695222244440011--

15HwTrqLPFiltSV_HwNm_M_str.K = max-646-90.4665119091.7809874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874136060808053-----------------------7.600464273313180800011--

16HwTrqLPFiltSV_HwNm_M_str.K = mid7111.60.0131.8907412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,7412,7412,74127412,7412,74122170707412741253----------------------1.67021212741274121111--

17k_TunSelHwTrqThresh_HwNm_f32 = min-712360.23401004523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45232589,2589,258912808010010053----------------------2.95821211001000011--

18k_TunSelHwTrqThresh_HwNm_f32 = max827-60.387101102589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25894523,4523,45232390902589452353-----------------------0.5823232258945231111--

19k_TunSelHwTrqThresh_HwNm_f32 = mid-89670.0134511204523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45239874,9874,9874111112012053----------------------6.7982511111201200011--

20k_TunSelVehSpdThresh_Kph_f32 = min981-70.01462.509874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98747412,7412,741222220053-----------------------6.76642222000011--

21k_TunSelVehSpdThresh_Kph_f32 = max-95380.015753.52552589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589133325525553----------------------7.7322531312552550011--

22k_TunSelVehSpdThresh_Kph_f32 = mid1.644-80.01696.9104523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45232144101053-----------------------7.83776121210100011--

23T_TunPersSelectionTbl_Ptr_Str[5] = min15890.11580,0,0,0,09874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,98741255585853----------------------8.2212158580011--

24T_TunPersSelectionTbl_Ptr_Str[5] = max2125-90.2212565535,65535,65535,65535,655357412,7412,7412,7412,74122589,2589,2589,2589,25897412,7412,7412236612512553-----------------------6.832321251250011--

25T_TunPersSelectionTbl_Ptr_Str[5] = mid33610.3336500,500,500,500,5002589,2589,2589,2589,25894523,4523,4523,4523,45232589,2589,258911772589258953----------------------1.61111258925891111--

26T_TunSetSelectionTbl_Ptr_Str[3] = min49620.084964523,4523,4523,4523,45230,0,0,0,09874,9874,9874,9874,98740,0,022889874452353----------------------2.162222987401111--

27T_TunSetSelectionTbl_Ptr_Str[3] = max57430.095749874,9874,9874,9874,987465535,65535,65535,65535,655359874,9874,9874,9874,987465535,65535,65535139965535258953----------------------3.18313165535655351111--

28T_TunSetSelectionTbl_Ptr_Str[3] = mid68540.096857412,7412,7412,7412,7412500,500,500,500,5007412,7412,7412,7412,7412500,500,5002110107412452353----------------------4.18121274125001111--

29PrevTunSet_Cnt_M_u16 = min715650.017571564523,4523,4523,4523,45234523,4523,4523,4523,45230,0,0,0,0500,500,5000220204523987453----------------------5.035202045235001111--

30PrevTunSet_Cnt_M_u16 = max820060.018982007412,7412,7412,7412,74122589,2589,2589,2589,258965535,65535,65535,65535,655350,0,023303065535053----------------------6.037832326553501111--

31PrevTunSet_Cnt_M_u16 = mid93670.19362589,2589,2589,2589,25894523,4523,4523,4523,4523500,500,500,500,50065535,65535,6553511404045236553553----------------------7.211114523655351111--

32PrevTunPers_Cnt_M_u16 = min-112580.21.11254523,4523,4523,4523,45239874,9874,9874,9874,98742589,2589,2589,2589,25890,0,020505012512553----------------------6.202021251250011--

33PrevTunPers_Cnt_M_u16 = max-28590.31.2859874,9874,9874,9874,98749874,9874,9874,9874,98744523,4523,4523,4523,452365535,65535,65535146060858553----------------------5.7414185850011--

34PrevTunPers_Cnt_M_u16 = mid-396-10.081.3967412,7412,7412,7412,74127412,7412,7412,7412,74129874,9874,9874,9874,9874500,500,500237070987450053-----------------------1.16323298745001111--

35DesiredTunSet_Cnt_u16 = min45840.01752585641,5641,5641,5641,56415641,5641,5641,5641,56415641,5641,5641,5641,56415641,5641,5641020807412741253----------------------42020741274120011--

36DesiredTunSet_Cnt_u16 = max56950.01893691236,1236,1236,1236,12361236,1236,1236,1236,12361236,1236,1236,1236,12361236,1236,1236231009110010053----------------------532321001000011--

37DesiredTunSet_Cnt_u16 = mid63460.02034346541,6541,6541,6541,65416541,6541,6541,6541,65416541,6541,6541,6541,65416541,6541,65411150252589258953----------------------61111258925890011--

38DesiredTunPers_Cnt_u16 = min71570.02175158523,8523,8523,8523,85238523,8523,8523,8523,85238523,8523,8523,8523,85238523,8523,85230067012012053----------------------700001201200011--

39DesiredTunPers_Cnt_u16 = max86280.02316627895,7895,7895,7895,78957895,7895,7895,7895,78957895,7895,7895,7895,78957895,7895,789514891000053----------------------84141000011--

40DesiredTunPers_Cnt_u16 = mid97490.02457745641,5641,5641,5641,56415641,5641,5641,5641,56415641,5641,5641,5641,56415641,5641,564123745025525553----------------------932322552550011--

41All Min-100-100.0124877435000,0,0,0,00,0,0,0,00,0,0,0,00,0,000000053-----------------------100000000011--

42All Max10511100.4665119091025565535,65535,65535,65535,6553565535,65535,65535,65535,6553565535,65535,65535,65535,6553565535,65535,6553524100100655356553553----------------------10424265535655350011--




































































































































































































































































































































































































































































Sheet 9: TuningSelAuth_Per1() p

TuningSelAuth_Per1TS--








































pI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/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
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionHwTorque_HwNm_f32VehicleSpeed_Kph_f32HwTrqLPFiltSV_HwNm_M_str.SVHwTrqLPFiltSV_HwNm_M_str.Kk_TunSelHwTrqThresh_HwNm_f32k_TunSelVehSpdThresh_Kph_f32T_TunPersSelectionTbl1_Ptr_Str[5]T_TunPersSelectionTbl2_Ptr_Str[5]T_TunPersSelectionTbl3_Ptr_Str[5]T_TunSetSelectionTbl_Ptr_Str[3]PrevTunSet_Cnt_M_u16PrevTunPers_Cnt_M_u16DesiredTunSet_Cnt_u16DesiredTunPers_Cnt_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mHwTrqLPFiltSV_HwNm_M_str.SVActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mRte_Call_TuningSelAuth_Per1_CP0_CheckpointReachedRte_Call_TuningSelAuth_Per1_CP1_CheckpointReachedHwTrqLPFiltSV_HwNm_M_str.SVActiveTunPers_Cnt_u16ActiveTunSet_Cnt_u16PrevTunPers_Cnt_M_u16PrevTunSet_Cnt_M_u16TunPer_Ptr_StrTunSet_Ptr_StrTableSize_mTableSize1_mRte_Call_TuningSelAuth_Per1_CP0_CheckpointReachedRte_Call_TuningSelAuth_Per1_CP1_CheckpointReachedP/FCPU Cycles
1if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32) =>FALSE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32))-106020.01561332589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,2589,2589,25892589,2589,25891111333353----------------------1.8128111133330011--

2if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32)=>TRUE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32)=>FALSE)1070-20.12684523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,45232222686853-----------------------0.8222268680011--

3if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32)=>TRUE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32)=>TRUE),
if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>FALSE,
if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>TRUE
08030.231999874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,987413339874987453----------------------2.43131987498741111--

4if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>TRUE20-40.096734523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,4523,4523,45234523,4523,452323664523452353-----------------------3.463232452345231111--

5if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>FALSE08030.231999874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,9874,9874,98749874,9874,987413239874987453----------------------2.43232987498741111--




































































































































































































































































































































































































































































Sheet 10: Test Vector Description













Nexteer EPS Unit Test Tool





Rev:2.7b





Test Setup SheetTest FunctionTest TypeVector NumberVector Description