You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to have Formula Data Record that supports raw to physical value calculation, so I can either use physical or raw values to decode/encode values of these data records.
Example:
Data Record Vehicle Speed is 16 bit value. Exact vehicle speed is calculated using formula:
[vehicle speed km/h] = [vehicle speed raw] / 125
Testing
unit tests
Value encoding and decoding using Formula Data Record
There is exception raised whenever out of range physical value is being decoded
There is exception raised whenever out of range raw value is being encoded
Acceptance criteria
Formula Data Record class is defined
inherits after Abstract Data Record class
provide encode method (input: raw value, output: physical value)
provide decode method (input: physical value, output: raw value)
proper error handling is implemented
provide an option to mix with other Data Record types (e.g. physical value in certain range and mapping for other values like 'error', 'init')
provide an option to have different mapping in various range (e.g. 1-10 -> 0.1-1; 11-20 -> 10-100)
The text was updated successfully, but these errors were encountered:
mdabrowski1990
changed the title
[refine] Intoduce Data Record: Calculated Physical Value
Intoduce Formula Data Record: (signal for message database)
Oct 30, 2024
Requires
#6
Description
As a user, I want to have Formula Data Record that supports raw to physical value calculation, so I can either use physical or raw values to decode/encode values of these data records.
Example:
Data Record
Vehicle Speed
is 16 bit value. Exact vehicle speed is calculated using formula:[vehicle speed km/h] = [vehicle speed raw] / 125
Testing
Acceptance criteria
The text was updated successfully, but these errors were encountered: