HwAgSysArbn_MDD

Module Design Document

For

HwAgSysArbn

Oct 31, 2017

Prepared By:

Matthew Leser,

Nexteer Automotive,

Saginaw, MI, USA

Change History

Sl. No.DescriptionAuthorVersionDate
1Initial VersionSarika Natu(KPIT Technologies)1.007-Sept-2015
2SF045A_HwAgSysArbn_Design version 2 implementationSB2.020-Jun-2016
3Updated to design version 2.2.0TATA3.007-Dec-16
4Updated to design version 2.4.0KK4.028-Feb-17
5Updated graph and added new functionML5.019-Jul-2017
6Added new functionML6.011-Oct-2017
7Updated GraphML7.031-Oct-2017


Table of Contents

1 Design details of software module 5

1.1 Graphical representation of HwAgSysArbn 5

1.2 Data Flow Diagram 5

1.2.1 Component level DFD 5

1.2.2 Function level DFD 5

2 Constant Data Dictionary 6

2.1 Program (fixed) Constants 6

2.1.1 Embedded Constants 6

3 Software Component Implementation 7

3.1 Sub-Module Functions 7

3.1.1 Init: HwAgSysArbn_Init1 7

3.1.1.1 Design Rationale 7

3.1.1.2 Module Outputs 7

3.1.2 Per: HwAgSysArbn_Per1 7

3.1.2.1 Design Rationale 7

3.1.2.2 Store Module Inputs to Local copies 7

3.1.2.3 (Processing of function)……… 7

3.1.2.4 Store Local copy of outputs into Module Outputs 7

3.2 Server Runables 7

3.3 Interrupt Functions 7

3.4 Module Internal (Local) Functions 7

3.4.1 Local Function #1 7

3.4.1.1 Design Rationale 8

3.4.1.2 Processing 8

3.4.2 Local Function #2 8

3.4.2.1 Design Rationale 8

3.4.2.2 Processing 8

3.4.3 Local Function #3 8

3.4.3.1 Design Rationale 8

3.4.3.2 Processing 8

3.5 GLOBAL Function/Macro Definitions 9

4 Known Limitations with Design 10

5 UNIT TEST CONSIDERATION 11

Appendix A References 12

HwAgSysArbn & High-Level Description

The Handwheel angle system arbitration function accepts inputs from the various angle sources available in the EPS system and selects the angle source to be used for the system handwheel angle value. It also provides for compliance compensation of the angle value and determines the angle value and angle validity to be output on the vehicle data bus.

Design details of software module

Graphical representation of HwAgSysArbn

Data Flow Diagram

See FDD.

Component level DFD

See FDD.

Function level DFD

See FDD.

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Refer .m file

Software Component Implementation

Sub-Module Functions

Init: HwAgSysArbnInit1

Design Rationale

Refer FDD

Module Outputs

Refer FDD

Per: HwAgSysArbn_Per1

Design Rationale

Store Module Inputs to Local copies

Refer FDD

(Processing of function)………

Refer FDD

Store Local copy of outputs into Module Outputs

Refer FDD

Server Runnables

None

Interrupt Functions

None

Module Internal (Local) Functions

Local Function #1

Function NameVldtSnsrlsDataTypeMinMax
Arguments PassedHwAgSnsrls_HwDeg_T_f32float32-1440.01440.0
HwAgSnsrlsConfIn_Uls_T_f32float320.01.0
Return ValueHwAgSnsrlsConf_Uls_T_f32float320.01.0

Design Rationale

Done to reduce Path Count

Processing

Refer to the Handwheel signal serial communication arbitration functionality of “VldtSnsrlsData” subsystem in the Simulink model.

Local Function #2

Function NameHwAgVelSerlComTypeMinMax
Arguments PassedHwAgCorrdConf_Uls_T_f32uint801
HwAgSnsrlsConf_Uls_T_f32uint801
HwAgCorrd_HwDeg_T_f32float32-14401440
HwAgSnsrls_HwDeg_T_f32float32-14401440
HwVel_HwRadPerSec_T_f32float32-42.0F42.0F
PinionVelConf_Uls_T_f32float320.0F1.0F
*HwAgStsToSerlCom_Cnt_T_lgcbooleanFALSETRUE
*HwVelToSerlCom_HwRadPerSec_T_f32float32-42.0F42.0F
Return ValueHwAgToSerlCom_HwDeg_T_f32float32-14401440

Design Rationale

None

Processing

Refer to the Handwheel signal serial communication arbitration functionality of “HwAgVelSerlCom” subsystem in the Simulink model.

Local Function #3

Function NameCalcPinionVelTypeMinMax
Arguments PassedHwTq_HwNwtMtr_T_f32float32-10.0F10.0F
MotVelCrf_MotRadPerSec_T_f32float32-1350.0F1350.0F
MotVelVld_Cnt_T_loglbooleanFALSETRUE
PinionAgConf_Uls_T_f32float320.0F1.0F
HwAg_HwDeg_T_f32float32-1440.0F1440.0F
* PinionVel_HwRadPerSec_T_f32float32-42.0F42.0F
* PinionVelConf_Uls_T_f32float320.0F1.0F
Return ValueHwVel_HwRadPerSec_T_f32float32-42.0F42.0F

Design Rationale

None

Processing

Refer to the functionality of “CalcPinionVel” subsystem in the Simulink model.

Local Function #4

Function NameHwPosnSigLoNTCSetTypeMinMax
Arguments PassedHwAgIdptSig_Cnt_T_u08uint80U2U
Return ValueNone

Design Rationale

Done to reduce Path Count.

Processing

None

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

For the switch case in Per1, the input ‘HwAgIdptSig_Cnt_T_u08’ will need to go out of range to reach default case.

References

Ref. #TitleVersion
1AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf)v1.3.0 R4.0 Rev 2
2MDD GuidelineProcess Release 04.02.01
3Software Naming Conventions.doc2.0
4Software Design and Coding Standards.doc2.1
5SF045A_HwAgSysArbn_DesignSee Synergy subproject version
Last modified October 12, 2025: Initial commit (ddf2e20)