03-03-2022 10:38 AM
I have a BMI160-based project switching to BMI270. This project relies on BoshSensortec libraries available on github(historically BMI160_driver, now BMI270-Sensor-API).
As opposite to BMI160 (for which library delegate the FOC process to the chip itself), BMI270 library perform the FOC itself. Both libraries exposes a foc function so this is transparent from the library user point of view.
But BMI270 fast offset compensation calls are very slow due to their current design:
This result in roughly 10 seconds to perform FOC on those two sensors, which is insanely slow for a factory. And my need is to calibrate accelerometers on factory side since products does not have a known position afterward.
My questions are:
1. Why those "slow" ODR have been chosen for FOC actions?
2. What would be the issue to speed it up?
3. (extra) What would be the issue to not perform FOC at all?
03-15-2022 10:09 AM
Hello aloiseau,
This is the FOC reference code implemented by software, which supports software modification.