4.21. Odometer Estimator - OdoEstimr
Id |
OdoEstimr |
Version |
0.4.2.0 |
Title |
Odometer Estimator |
System |
Drivetrain |
Document Type |
Application Software Component Specification Preview |
4.21.1. Overview
The Odometer Estimator component calculates the total and trip distances based on the vehicle speed and gear selector state. It provides the estimated total and trip distances along with diagnostic information.
4.21.2. Functions
Title |
Description |
|
|---|---|---|
1 |
Calculate Total Distance |
Calculates the total distance traveled by the vehicle based on the vehicle speed when the gear selector is in Drive or Reverse. The total distance is limited to a maximum value. |
2 |
Calculate Trip Distance |
Calculates the trip distance traveled by the vehicle based on the vehicle speed when the gear selector is in Drive or Reverse. The trip distance is limited to a maximum value and can be reset. |
3 |
Provide Diagnostic Information |
Provides diagnostic information related to the validity of the vehicle speed, trip distance calculation, total distance from flash memory, and the ranges of the trip and total distances. Sets DTCs if any issues are detected. |
4.21.3. Ports
Id |
Direction |
Data Type |
Dimensions |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
TiFromStrt |
Incoming |
single |
[1] |
s |
Expected signal: Elapsed time since vehicle power on |
Time From Start |
2 |
VehSpd |
Incoming |
single |
[1] |
km/h |
Expected signal: Vehicle longitudinal speed |
Vehicle Speed |
3 |
VehSpdVld |
Incoming |
boolean |
[1] |
Expected signal: Validity of vehicle longitudinal speed |
Vehicle Speed Valid |
|
4 |
StrtFlsTotDst |
Incoming |
single |
[1] |
m |
Expected signal: Total distance travelled |
Start Flash Total Distance |
5 |
StrtFlsTotDstSt |
Incoming |
boolean |
[1] |
Expected signal: Status flag of total distance value from memory |
Start Flash Total Distance State |
|
6 |
GearSt |
Incoming |
Enum: CmnenaGearSt |
[1] |
Expected signal: Gear state |
Gear State |
|
7 |
OdoestTripDst |
Outgoing |
single |
[1] |
m |
Odoest Trip Distance |
|
8 |
OdoestTotDst |
Outgoing |
single |
[1] |
m |
Odoest Total Distance |
|
9 |
OdoestTotDstSt |
Outgoing |
boolean |
[1] |
Odoest Total Distance State |
||
10 |
OdoestTotVehDstOkFlg |
Outgoing |
boolean |
[1] |
Odoest Total Vehicle Distance Ok Flag |
||
11 |
OdoestTripDstDiagc |
Outgoing |
boolean |
[2] |
inherit |
Odoest Trip Distance Diagnostic |
|
12 |
OdoestTotDstDiagc |
Outgoing |
boolean |
[3] |
inherit |
Odoest Total Distance Diagnostic |
|
13 |
OdoestDiagc |
Outgoing |
Bus: OdoestDiagc |
[-1] |
inherit |
Odoest Diagnostic |
4.21.4. Parameters
Id |
Data Type |
Dimensions |
Range |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
OdoestTotDstMaxVal |
single |
[1,1] |
Min: , Max: |
m |
Odometer total distance max value |
Odoest Total Distance Maximum Value |
2 |
OdoestTripDstMaxVal |
single |
[1,1] |
Min: , Max: |
m |
Odometer trip distance max value |
Odoest Trip Distance Maximum Value |
3 |
OdoestEnaClcnOvrdFlg |
boolean |
[1,1] |
Min: 0, Max: 1 |
Calculate distance for any GS |
Odoest Enable Calculation Override Flag |
4.21.5. Calibration
OdoEstimr SW component provides the estimated total and trip distances.
4.21.5.1. Step 1 - Distance calculation as a function of selected gear (TRIP)
Set OdoestEnaClcnOvrdFlg to true to calculate the vehicle travelled distance disregarding the gear engaged. Set it to false to calculate it only when Forward and Reverse are selected.
4.21.5.2. Step 2 - Set Maximum Total and Trip Distance Values
Set OdoestTotDstMaxVal to saturate the maximum value for distance. This should be in line with the total expected distance travelled by the vehicle in its lifetime.
Set OdoestTripDstMaxVal to saturate the maximum value for trip. This should be in line with the maximum value that can be displayed via the dashboard.
4.21.5.3. Notes
None