stm32duino / LSM6DSV16X

Arduino library to support the LSM6DSV16X 3D accelerometer and 3D gyroscope
BSD 3-Clause "New" or "Revised" License
6 stars 7 forks source link

Qvar Data Reading #3

Closed GiordanaDB closed 1 year ago

GiordanaDB commented 1 year ago

Hi everyone, i'm trying to use this sensor with an arduino Nano 33 iot and I would like to read the "Qvar Data". I have seen in your codes there are some functions for the accelerometer data, gyroscope and so on, but none for the qvar data. I guess if it is possible to build a "Get_Qvar_Data" function similarly to the "Get_X_Axes" function present in the example. I have seen in the Reg.h file that there is a "lsm6dsv16x_ah_qvar_raw_get(lsm6dsv16x_ctx_t ctx, int16_t val)" however I can't understand how to replicate it on an example in order to acquire Qvar Data. I would be very grateful if someone could help me. Thank you. Giordana

cparata commented 1 year ago

Hello @GiordanaDB , Unfortunately, at the moment the driver does not support the Qvar capability. I will add it in the next months, as soon as I will have time to work on it. Best Regards, Carlo

GiordanaDB commented 1 year ago

Thanks @cparata for the fast answer, unfortunately I have little time to complete my university project involving the qvar data acquisition. Is it possible to know how the "Get_X_Axes" function is built in order to replicate the same structure for a "Get_Qvar_data" function? I see that the Register.h file already contains all the configurations for the qvar data so I imagine that it's all about creating the function. Thanks a lot for the attention. Best Regards, Giordana

cparata commented 1 year ago

Hello @GiordanaDB , if you want to contribute to add this feature, you are welcome! :-) You can get inspiration to QVAR_Handler function that was added recently in the X-CUBE-MEMS1 package. It uses the Cube framework but you can adapt to Arduino framework just reading/writing the registers with Read_Reg/Write_Reg APIs. You can find some documentation on how to enable QVAR in LSM6DSV16X sensor also here in the chapter 4. Best Regards, Carlo

GiordanaDB commented 1 year ago

Hello @cparata , thanks for helping. I'll let you know if there are any updates. Good day and good work, Giordana