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
Via iio_ device_ create_ Buffer () creates a buffer to read the information of the gyroscope's iio device. There is a segment error, error code 22. What is the reason
The text was updated successfully, but these errors were encountered:
Error code 22 is "invalid value". What hardware and Linux driver are you using, and how do you call iio_device_create_buffer?
I wrote an iio driver test for mpu6050 and created a buffer in qt through the (struct iio_buffer * buf=iio_device_create_buffer (dev, 1024, false) function
I would think that your mpu6050 driver does not support the buffer interface. It does not really need to, if the sample rate is very low (which is typically the case on a gyroscope).
Instead, you should be able to use channel.find_attribute("raw").read() to get a snapshot of the channel's value at a given time.
Via iio_ device_ create_ Buffer () creates a buffer to read the information of the gyroscope's iio device. There is a segment error, error code 22. What is the reason
The text was updated successfully, but these errors were encountered: