HwAgSysArbn_MDD
Module Design Document
For
HwAgSysArbn
Oct 31, 2017
Prepared By:
Matthew Leser,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial Version | Sarika Natu(KPIT Technologies) | 1.0 | 07-Sept-2015 |
| 2 | SF045A_HwAgSysArbn_Design version 2 implementation | SB | 2.0 | 20-Jun-2016 |
| 3 | Updated to design version 2.2.0 | TATA | 3.0 | 07-Dec-16 |
| 4 | Updated to design version 2.4.0 | KK | 4.0 | 28-Feb-17 |
| 5 | Updated graph and added new function | ML | 5.0 | 19-Jul-2017 |
| 6 | Added new function | ML | 6.0 | 11-Oct-2017 |
| 7 | Updated Graph | ML | 7.0 | 31-Oct-2017 |
Table of Contents
1 Design details of software module 5
1.1 Graphical representation of HwAgSysArbn 5
2.1 Program (fixed) Constants 6
3 Software Component Implementation 7
3.1.1 Init: HwAgSysArbn_Init1 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.4 Module Internal (Local) Functions 7
3.5 GLOBAL Function/Macro Definitions 9
4 Known Limitations with Design 10
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 Name | VldtSnsrlsData | Type | Min | Max |
| Arguments Passed | HwAgSnsrls_HwDeg_T_f32 | float32 | -1440.0 | 1440.0 |
| HwAgSnsrlsConfIn_Uls_T_f32 | float32 | 0.0 | 1.0 | |
| Return Value | HwAgSnsrlsConf_Uls_T_f32 | float32 | 0.0 | 1.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 Name | HwAgVelSerlCom | Type | Min | Max |
| Arguments Passed | HwAgCorrdConf_Uls_T_f32 | uint8 | 0 | 1 |
| HwAgSnsrlsConf_Uls_T_f32 | uint8 | 0 | 1 | |
| HwAgCorrd_HwDeg_T_f32 | float32 | -1440 | 1440 | |
| HwAgSnsrls_HwDeg_T_f32 | float32 | -1440 | 1440 | |
| HwVel_HwRadPerSec_T_f32 | float32 | -42.0F | 42.0F | |
| PinionVelConf_Uls_T_f32 | float32 | 0.0F | 1.0F | |
| *HwAgStsToSerlCom_Cnt_T_lgc | boolean | FALSE | TRUE | |
| *HwVelToSerlCom_HwRadPerSec_T_f32 | float32 | -42.0F | 42.0F | |
| Return Value | HwAgToSerlCom_HwDeg_T_f32 | float32 | -1440 | 1440 |
Design Rationale
None
Processing
Refer to the Handwheel signal serial communication arbitration functionality of “HwAgVelSerlCom” subsystem in the Simulink model.
Local Function #3
| Function Name | CalcPinionVel | Type | Min | Max |
| Arguments Passed | HwTq_HwNwtMtr_T_f32 | float32 | -10.0F | 10.0F |
| MotVelCrf_MotRadPerSec_T_f32 | float32 | -1350.0F | 1350.0F | |
| MotVelVld_Cnt_T_logl | boolean | FALSE | TRUE | |
| PinionAgConf_Uls_T_f32 | float32 | 0.0F | 1.0F | |
| HwAg_HwDeg_T_f32 | float32 | -1440.0F | 1440.0F | |
| * PinionVel_HwRadPerSec_T_f32 | float32 | -42.0F | 42.0F | |
| * PinionVelConf_Uls_T_f32 | float32 | 0.0F | 1.0F | |
| Return Value | HwVel_HwRadPerSec_T_f32 | float32 | -42.0F | 42.0F |
Design Rationale
None
Processing
Refer to the functionality of “CalcPinionVel” subsystem in the Simulink model.
Local Function #4
| Function Name | HwPosnSigLoNTCSet | Type | Min | Max |
| Arguments Passed | HwAgIdptSig_Cnt_T_u08 | uint8 | 0U | 2U |
| Return Value | None |
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. # | Title | Version |
|---|---|---|
| 1 | AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf) | v1.3.0 R4.0 Rev 2 |
| 2 | MDD Guideline | Process Release 04.02.01 |
| 3 | Software Naming Conventions.doc | 2.0 |
| 4 | Software Design and Coding Standards.doc | 2.1 |
| 5 | SF045A_HwAgSysArbn_Design | See Synergy subproject version |