Closed jmgarciah closed 5 years ago
Seeing that there are no methods to support this at IAnalogSensor, I'd start by including this as a parameter passed to the device parsed within the open()
method: https://github.com/roboticslab-uc3m/yarp-devices/blob/ff690808731d3c75cd598f9a7179030b2df768f5/libraries/YarpPlugins/Jr3/DeviceDriverImpl.cpp#L9
Something like --filter 0
and --filter 2
to map to these values?
It is a great idea if we can use different filters by including this parameter to the device
Kinda unrelated, but I noticed that Clang complains about these lines:
Each 5.5
value is narrowed down to 5
in order to fit into an integer-type variable.
Each
5.5
value is narrowed down to5
in order to fit into an integer-type variable.
Related to https://github.com/roboticslab-uc3m/jr3pci-linux/issues/12?
Also, I guess this issue is meant to make https://github.com/roboticslab-uc3m/yarp-devices/commit/fb1c1f64a234ab4a62f36da26b206ef854cdb251 subject to parameterization.
I'd start by including this as a parameter passed to the device parsed within the
open()
method
@jgvictores, @jmgarciah would https://github.com/roboticslab-uc3m/yarp-devices/commit/97254095637cc2d8e8f5e91e8f63c46201f1372a match the expected behavior?
When I have to do a test or record a video, always I have to change the value of the filters for the FT sensors (both ankles and wrists).
At this moment, the default value for the four filters is 0
ret = ioctl(fd,IOCTL0_JR3_FILTER0,&fm0);
Can we replace in IAnalogSensorImpl.cpp this filter 0 with the filter 2 ?? The filter 2 has a higher frequency, so it can filter the noise of the sensor and measure the external perturbation quickly. It is not as restrictive as the filter 6.