Skip to main content
Visitor II
November 28, 2024
Question

MotionFX has default bias on gravity with perfect data

  • November 28, 2024
  • 1 reply
  • 487 views

Hello,

I am using MotionFX on STM32BlueCoin device. I tested values of linear_acceleration and gravity from MotionFX library, and I have very strange bias on produced values, although I try to feed perfect hardcoded data to the library.

For example I always send MotionFX 6X input data as following, Accelerometer x=0, y=0,z=-9.81, Gyro x=y=z=0

In return, I have strange values on the gravity axis.

 

INFO:__main__:Gravity -> x: 0.0000, y: 0.0000, z: -10.0000
INFO:__main__:Linear Acc -> x: 0.0000, y: 0.0000, z: -0.1890
INFO:__main__:Gravity -> x: 0.0000, y: 0.0000, z: -10.0000
INFO:__main__:Linear Acc -> x: 0.0000, y: 0.0000, z: -0.1890
INFO:__main__:Gravity -> x: 0.0000, y: 0.0000, z: -10.0000
INFO:__main__:Linear Acc -> x: 0.0000, y: 0.0000, z: -0.1890

 

 Why is gravity Z always 10? Shouldn't it be 9.81 in perfect condition? Why linear_acceleration have this strange value of -0.189?

I tried to change many knobs parameters, but I couldn't even change it a bit.

1 reply

Federica Bossi
Technical Moderator
December 6, 2024

Hi @vlad_kost ,

It is not a problem of the set parameters but a slight error is expected by the system, the difference is very little.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.