IMU Value tracking

i would please like some help with obtaining a Yaw value initially and keep it.

So i am using a motor carrier that makes use of the BNO055 orientation sensor and produces the the yaw , pitch and roll. So i would like to a assign a variable to an initial yaw value and that variable should not change even through the current yaw value is changing.

So what is the problem ?

Read the sensor
Save the value in a variable
Don't change the variable again

The obvious place to do the initial reading is in the setup() function

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.