robotology / wearables

Code moved to https://github.com/robotology/human-dynamics-estimation
https://github.com/robotology/human-dynamics-estimation
BSD 3-Clause "New" or "Revised" License
19 stars 11 forks source link

Fix IWearWrapper behaviour when read measurement fails #140

Closed lrapetti closed 2 years ago

lrapetti commented 2 years ago

Currently, when a measurement is not available and the get${Data} methods return false, the IWearRemapper was rasing a warning, but was also updating the buffer with some uninitialized variables.

This PR fix this issue.

In the future e could improve the behaviour in this cases by properly using the status variable (but then we should avoid that downstream device do not stop if for example simply few data are missing).

lrapetti commented 2 years ago

Thanks @diegoferigo, today we did additional tests, we can merge it.