Hello DroneKid,
Yes, the reference code runs under FreeRTOS.
The low layer hardware driver can be used for BMI 160.
To get altitude, you could calculate it manually.
For your application, it is recommended to calibrate sensor with standard barometer.
... View more