We are still working on migrating to the new Bosch Connected Industry Online Portal. Stay tuned! Click here for the latest updates.
08-16-2021 03:14 PM
Hi,
I want to use the API bma4_perform_accel_foc, for calculating the foc for all 3 axis - x,y,z.
The API recieves the struct : bma4_accel_foc_g_value.
I thought to declare - const struct bma4_accel_foc_g_value accel_g_value = {1, 1, 1, 0}, so all three axis will be calculated, but in the API code I see the following condition :
if (((ABS(accel_g_value->x) + ABS(accel_g_value->y) + ABS(accel_g_value->z)) == 1) &&
((accel_g_value->sign == 1) || (accel_g_value->sign == 0)))
which makes me think I should call one axis at a time (also in related APIs it seems like that).
but if so - will it be saved corrctly at the NVM? won't each call run over the previous values?
Thanks in advance,
Shaked.
08-23-2021 04:54 PM
Hello Shaked, apologies for the late response,
There is a dedicated Community for Bosch Sensortec MEMS sensors, can you try posting your question there?
https://community.bosch-sensortec.com/t5/Bosch-Sensortec-Community/ct-p/bst_community
Thank you! Any further question just please let us know...