Hello. Thank you for writing this driver. I'm currently adapting it to be useful for a different IMU but STM32 friendly.
void icm20948_accel_low_pass_filter(uint8_t config)
{
uint8_t new_val = read_single_icm20948_reg(ub_2, B2_ACCEL_CONFIG);
new_val |= config << 3;
write_single_icm20948_reg(ub_2, B2_GYRO_CONFIG_1, new_val);
}
I wanted to point out that the registers here do not line up. I think this is a simple typo, and it likely will not have much of an effect, but it would likely be a good idea to fix this before it affects someone's project.
Hello. Thank you for writing this driver. I'm currently adapting it to be useful for a different IMU but STM32 friendly.
I wanted to point out that the registers here do not line up. I think this is a simple typo, and it likely will not have much of an effect, but it would likely be a good idea to fix this before it affects someone's project.