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.
... View more