I am trying to get the orientation of the camera in degrees and hence checked on the rs-motion example. When I run the rs-motion module, at first there is very unstable data and after a while the data settles down but the y orientation does not change on movement. If I restart the rs-motion module the y orientation then works properly.
However, I see that there is a drift in the y - orientation when stationary of about +/-1 degree at every 12~13 seconds. I tested this with two different cameras and on two different system configurations: Raspberry Pi 4 and Laptop with intel processor. The drift is always either + 1 degree every 12~13 secs or -1 degree.
Is there a way to compensate for this error and get a stable orientation when stationary? Any other suggestions for this would be appreciated too.
Thank you in advance.
Please sign in to leave a comment.