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
Is your feature request related to a problem? Please describe.
In #138 I need three .cal values to calculate acceleration in X, Y and Z axes. I defined a .cal value three times because I wanted to extract three bytes and and use these values in calculations, but it seems the decoder is only using the latest .cal value, so the three calculations are using the same extracted value.
Describe the solution you'd like
I'd like to be able to use more than one .cal value.
Wow, the size of some of these is getting much bigger than I imagined. I think it best that the code simply uses the last .cal value provided before decoding the next data, order of operations sort of thing. I thought that would be happening already, but it's been a while since I looked at it.
Is your feature request related to a problem? Please describe.
In #138 I need three .cal values to calculate acceleration in X, Y and Z axes. I defined a
.cal
value three times because I wanted to extract three bytes and and use these values in calculations, but it seems the decoder is only using the latest.cal
value, so the three calculations are using the same extracted value.Describe the solution you'd like
I'd like to be able to use more than one .cal value.
Describe alternatives you've considered
I haven't found an alternative way.
Additional context
This is the relevant code:
As seen in the test results of #138, the latest
.cal
value (the byte at index 28 of the service data) is used for all calculations that refer to.cal
.The text was updated successfully, but these errors were encountered: