Nicholas Thompson
2a84799832
Add frequency clip check
...
Add check to ensure frequency value is set to 0 when period counter hits maximum or minimum
Closes #31
2022-01-26 20:11:15 +02:00
Hendrik van Wyk
b3245aba9b
No longer use RAM value scale signedness for info frames.
...
The signedness calculated along with the RAM value scale and offset was
incorrectly applied to the info frame value. This caused some values to
be interpreted as unsigned instead of signed leading to negative values
reporting as very large positive values.
2022-01-11 20:36:56 +02:00
Hendrik van Wyk
157736a99d
Add optional debug logging for frame decoding.
2020-10-08 12:25:33 +02:00
Hendrik van Wyk
86f3f0c8e3
Fix scaling to more closely match the Victron documentation.
...
We were decoding the scale as unsigned while it is signed. We were also
ignoring the fact that the sign of the scale determines the signedness of
the value it scales.
2020-09-25 15:03:26 +02:00
Nicholas Thompson
c991503e33
Add mode-2 to scale factors
2020-09-19 18:38:00 +02:00
Nicholas Thompson
ab346bcf90
Disable dead code check for RAM IDs
2020-09-13 21:14:24 +02:00
Nicholas Thompson
4c6df96051
Add unit test to scaleDecode
2020-09-13 20:56:26 +02:00
Nicholas Thompson
2a56dd24e4
Cleanup mk2 logging
2020-09-13 20:56:22 +02:00
Nicholas Thompson
65d9429a12
Add constants to frame decoder
2020-09-13 20:56:15 +02:00
Nicholas Thompson
5fb5ce5f12
Add check to scaling factors
...
Fix scaling append
2020-09-13 20:52:39 +02:00
Nicholas Thompson
0b324458f0
Added basic test to mk2driver to test know state.
2019-03-31 19:57:55 +02:00
Nicholas Thompson
47e73a4eff
Concept plugin layout
2019-03-31 19:57:55 +02:00
Nicholas Thompson
d02de285d9
Changed the naming of mk2if to mk2driver
2019-03-31 19:57:55 +02:00