1 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

Electric Power Consumption - Rev 1<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1Selva2-Dec-12Initial Release




























































































































































































































































































































































Sheet 2: Variable Dictionary

Electric Power Consumption - Rev 1

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




















Vecu_Volt_f32VecuSF08 ElectricPowerConsumption
IN
0031Single Precision Floating PointVoltfloat32







MtrVoltDax_Volt_f32MtrVoltDax_VoltSF08 ElectricPowerConsumption
IN
0-2020Single Precision Floating PointVoltfloat32







MtrVoltQax_Volt_f32MtrVoltQax_VoltSF08 ElectricPowerConsumption
IN
0-2020Single Precision Floating PointVoltfloat32







MtrCurrDax_Amp_f32MtrCurrDax_AmpSF08 ElectricPowerConsumption
IN
00220Single Precision Floating PointAmpfloat32







MtrCurrQax_Amp_f32MtrCurrQax_AmpSF08 ElectricPowerConsumption
IN
0-220220Single Precision Floating PointAmpfloat32







ElectricPower_Watt_f32Electric_PowerSF08 ElectricPowerConsumption
ON
0-14001400Single Precision Floating Point1.25E-01Wattsfloat32







SupplyCurrent_Amp_f32Supply_CurrentSF08 ElectricPowerConsumption
ON
0-150150Single Precision Floating Point6.25E-02Ampfloat32







ModInPower_Watt_D_f32Modulator Input PowerSF08 ElectricPowerConsumption
DN
0-20002000Single Precision Floating PointWattsfloat32







DropInPower_Watt_D_f32Input Power DropSF08 ElectricPowerConsumption
DN
0-200200Single Precision Floating PointWattsfloat32
































































































































































































































































































































































































































































Sheet 3: Calibration Dictionary

Electric Power Consumption - Rev 1


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_CntlrInResist_Ohm_f32ElecPwr_k_CntrlInResist_OhmSF08 ElectricPowerConsumptionControl module input resistance valueNN
0.00500.02Ohmsfloat32




k_PstcPowerLoss_Watt_f32ElecPwr_k_PstcPowerLoss_WattsSF08 ElectricPowerConsumptionParasitic power loss of the controllerNN
10025Wattsfloat32





Sheet 4: Global Constants

Electric Power Consumption - Rev 1








































































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.

2 - Electric_Power_Consumption_MDD

Module --

High-Level Description

This module estimates the instantaneous electric power at the input of the control module and the supply current.

Figures

Diagram – Component Diagram


Variable Data Dictionary

Module InputsModule Outputs
Vecu_Volt_f32ElectricPower_Watt_f32
MtrVoltDax_Volt_f32SupplyCurrent_Amp_f32
MtrVoltQax_Volt_f32
MtrCurrDax_Amp_f32
MtrCurrQax_Amp_f32

Module Internal Variables

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
ModInPower_Watt_D_f32Single Precision Floating Point-20002000ELEPWR_START_SEC_VAR_CLEARED _32
DropInPower_Watt_D_f32Single Precision Floating Point-200200ELEPWR_START_SEC_VAR_CLEARED _32

User defined typedef definition/declaration

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

None

Constant Data Dictionary

Calibration Constants

Constant Name
k_CntlrInResist_Ohm_f32
k_PstcPowerLoss_Watt_f32

Program(fixed) Constants

Embedded Constants

Local

Constant NameResolutionUnitsValue
D_SQRT3OVR2_ULS_F32Single precision FloatFloat320.866025403784

Global

Constant Name
D_ZERO_ULS_F32

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
None

Functions/Macros used by the Sub-Modules

Library Functions / Macros

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

Data Hiding Functions

None

Local Functions/Macros Used by this MDD only

None


Software Module Implementation

Initial Data Values

DataValue
Rte_InitValue_Vecu_Volt_f320.0
Rte_InitValue_MtrVoltDax_Volt_f320.0
Rte_InitValue_MtrVoltQax_Volt_f320.0
Rte_InitValue_MtrCurrDax_Amp_f320.0
Rte_InitValue_MtrCurrQax_Amp_f320.0
Rte_InitValue_ElectricPower_Watt_f320.0

Periodic Functions

Per: _Per1

Design Rationale

None

Program Flow Start

Rte_Call_ElePwr_Per1_CP0_CheckpointReached()

Store Module Inputs to Local copies

Local CopyModule Input
Vecu_Volt_f32Rte_IRead_ElePwr_Per1_Vecu_Volt_f32()
MtrVoltDax_Volt_f32Rte_IRead_ElePwr_Per1_ MtrVoltDax_Volt_f32 ()
MtrVoltQax_Volt_f32Rte_IRead_ElePwr_Per1_ MtrVoltQax_Volt_f32 ()
MtrCurrDax_Amp_f32Rte_IRead_ElePwr_Per1_ MtrCurrDax_Amp_f32
MtrCurrQax_Amp_f32Rte_IRead_ElePwr_Per1_ MtrCurrQax_Amp_f32 ()

Calculate Modulator Input Power

Store Local copy of outputs into Module Outputs

Local CopyModule Output
ElecPower_Watt_T_f32Rte_IWrite_ElePwr_Per1_ ElectricPower_Watt_f32()
SupplyCurrent_Amp_T_f32Rte_IWrite_ElePwr_Per1_SupplyCurrent_Amp_f32 ()

Program Flow End

Rte_Call_ElePwr_Per1_CP1_CheckpointReached()

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Execution Requirements

Execution Rates for sub-modules called by the Scheduler

Function NameCalling FrequencySystem State(s) in which the function is called
_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
_Per1RTE_AP_ELEPWR_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. None


Revision Control Log

Rev #Change DescriptionDateAuthor Initials
1Initial AUTOSAR version (SF08 v001).1-Dec-12Selva
2Name changed from CmElecPwr to ElePwr10-Dec-12Selva

3 - ElePwr_UnitTestResults


Overview

Unit Test Information
Module Definitions
Variable Range
ElePwr_Per1
ElePwr_Per1() b


Sheet 1: Unit Test Information

1.0a






















Nexteer EPS Unit Test Tool






Rev:2.7b












Name of Tester:Padmalatha Gudipally
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_ElePwr.c



Code File(s) Version:1



Module Design Document:Electric_Power_Consumption_MDD.docx



Module Design Document Version:2



Unit Test Plan Version:1



Optimization Level:Level 2



Compiler (CodeGen) Version:TMS470_4.9.5



Model Type:Excel Macro



Model Version:Nexteer EPS Unit Test Tool 2.7b/EPS Library 1.28



Special Test Requirements:




Test Date:6/6/2013



Comments:




Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

ElePwr_Per1ElePwr_Per1() b----
29
















































































































































































































































































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
voidElePwr_Per1(void)
GfloatVecu_Volt_f32

voidRte_Call_ElePwr_Per1_CP0_CheckpointReached(void)




GfloatMtrVoltDax_Volt_f32

voidRte_Call_ElePwr_Per1_CP1_CheckpointReached(void)




GfloatMtrVoltQax_Volt_f32








GfloatMtrCurrDax_Amp_f32








GfloatMtrCurrQax_Amp_f32








GfloatElectricPower_Watt_f32








GfloatSupplyCurrent_Amp_f32








GfloatModInPower_Watt_D_f32








GfloatDropInPower_Watt_D_f32








Gfloatk_CntlrInResist_Ohm_f32








Gfloatk_PstcPowerLoss_Watt_f32





Sheet 3: Variable Range









































Nexteer EPS Unit Test Tool












Rev:2.7b
























Variable Range Definitions








Variable NameMax ValueMin Value








Vecu_Volt_f32










MtrVoltDax_Volt_f32










MtrVoltQax_Volt_f32










MtrCurrDax_Amp_f32










MtrCurrQax_Amp_f32










ElectricPower_Watt_f32










SupplyCurrent_Amp_f32










ModInPower_Watt_D_f32










DropInPower_Watt_D_f32










k_CntlrInResist_Ohm_f32










k_PstcPowerLoss_Watt_f32











Sheet 4: ElePwr_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
ElePwr_Per1b29Vecu_Volt_f32ElectricPower_Watt_f32Rte_Call_ElePwr_Per1_CP0_CheckpointReached



MtrCurrDax_Amp_f32SupplyCurrent_Amp_f32Rte_Call_ElePwr_Per1_CP1_CheckpointReached



MtrCurrQax_Amp_f32




MtrVoltDax_Volt_f32




MtrVoltQax_Volt_f32




k_CntlrInResist_Ohm_f32




k_PstcPowerLoss_Watt_f32


Sheet 5: ElePwr_Per1() b

ElePwr_Per1TS--















bI/PI/PI/PI/PI/PI/PI/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionVecu_Volt_f32MtrCurrDax_Amp_f32MtrCurrQax_Amp_f32MtrVoltDax_Volt_f32MtrVoltQax_Volt_f32k_CntlrInResist_Ohm_f32k_PstcPowerLoss_Watt_f32ElectricPower_Watt_f32SupplyCurrent_Amp_f32Rte_Call_ElePwr_Per1_CP0_CheckpointReachedRte_Call_ElePwr_Per1_CP1_CheckpointReachedElectricPower_Watt_f32SupplyCurrent_Amp_f32Rte_Call_ElePwr_Per1_CP0_CheckpointReachedRte_Call_ElePwr_Per1_CP1_CheckpointReachedP/FCPU Cycles
1All Min50-220-20-2000--------3810.5117766496762.1023553299211--

2All Max3122022020200.0225--------8854.76444819912285.63756284513311--

3Vecu_Volt_f32=Min52525-210.0012---------19.6318850946-3.9263770189211--

4Vecu_Volt_f32=Max316550-430.0024---------91.2439078397572-2.9433518657986211--

5Vecu_Volt_f32=Pos258575-650.0036---------110.84781951084-4.433912780433611--

6MtrCurrDax_Amp_f32=Min60100-870.0048--------655.051115982092109.17518599701511--

7MtrCurrDax_Amp_f32=Max8220125-1090.00510---------853.264906724119-106.65811334051511--

8MtrCurrDax_Amp_f32=Pos10125150-12110.00612--------142.91631056759914.291631056759911--

9MtrCurrQax_Amp_f32=Min1210-220-14130.00714---------2255.95121135233-187.99593427936111--

10MtrCurrQax_Amp_f32=Max1430220-16150.00816--------2701.63245499716192.97374678551211--

11MtrCurrQax_Amp_f32=Max16500-18170.00918---------740.065441530622-46.254090095663811--

12MtrCurrQax_Amp_f32=Neg1870-50-3190.0120---------953.441320241323-52.968962235629111--

13MtrCurrQax_Amp_f32=Pos209050-5-10.01122---------405.856451892005-20.292822594600311--

14MtrVoltDax_Volt_f32=Min22110-25-20-30.01224---------1732.33574957001-78.742534071364111--

15MtrVoltDax_Volt_f32=Max24130-5020-50.0131--------2606.66263515926108.61094313163611--

16MtrVoltDax_Volt_f32=Zero26150-750-70.0143--------461.94449453097417.76709594349911--

17MtrVoltDax_Volt_f32=Neg28170-100-10-90.0155---------678.636649557821-24.237023198493611--

18MtrVoltDax_Volt_f32=Pos30190-12510-110.0167--------2986.2415307257999.541384357526311--

19MtrVoltQax_Volt_f32=Min7210-1502-200.0179--------6014.25790134636859.17970019233711--

20MtrVoltQax_Volt_f32=Max920-1754200.01811---------1001.40688094325-111.26743121591711--

21MtrVoltQax_Volt_f32=Zero1140-200600.01913--------227.62956798253320.693597089321211--

22MtrVoltQax_Volt_f32=Neg1360118-150.00515--------289.99974035763822.307672335202911--

23MtrVoltQax_Volt_f32=Pos15802210150.0117--------1038.1720396092169.211469307280711--

24k_CntlrInResist_Ohm_f32=Min171003312-13019--------686.70558631746440.394446253968511--

25k_CntlrInResist_Ohm_f32=Max191204414-150.0221--------947.57582875714349.872412039849611--

26k_CntlrInResist_Ohm_f32=Pos21140-1116-170.0123--------2225.01931824897105.95330086899911--

27k_PstcPowerLoss_Watt_f32=Min23160-2218-190.0120--------3041.20137714258132.22614683228611--

28k_PstcPowerLoss_Watt_f32=Max25180-33320.01425--------439.27059819361217.570823927744511--

29k_PstcPowerLoss_Watt_f32=Pos27200-44540.01615--------739.78149238878627.39931453291811--