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
the encoder is rejecting a value that is equal to its descriptor's valid range lower or upper limit value.
For example descriptor 13011, this should take any value between [-0.1, 1638.1]
But the value -0.1 cannot be stored and a default missing value is used instead.
Debug show that value of -0.1 was rejected because it is out of range.
(by vanh-souvanlasy)
Looks like the internal test of value range is done between a double and a float.
For a float -0.1 is stored as value=-0.100000001 and stored in a double as min=-0.10000000000000001
The double were used for the range and float was used for value to test.
Which fails the test: if ( (value>=min)&&(value<=max))
value is smaller than min
A simple solution would be to cast double to float before comparing the two values.
the encoder is rejecting a value that is equal to its descriptor's valid range lower or upper limit value.
For example descriptor 13011, this should take any value between [-0.1, 1638.1]
But the value -0.1 cannot be stored and a default missing value is used instead.
Debug show that value of -0.1 was rejected because it is out of range.
Imported from Launchpad using lp2gh.
The text was updated successfully, but these errors were encountered: