Open nocs85 opened 5 months ago
Might be because it includes gravitational g and you are not accelerating with higher than g in opposite direction?
Oh yeah, that did the trick! Assigning "1" stabilized the altitude at 0m, variations around 1 lead to increase or decrease of the altitude correctly! :)
I assume the accelerations passed to the kalman filter must be in global/inertial coordinate system (and not in local/body coordinate system), is that correct?
One more question: what is the purpose of the gyro-rates in the kalman filter?
Standing on Earth we are not at rest in inertial system. We actually accelerating with g. That’s why we feel gravity. Gravity really doesn’t exist as a force (compared to electromagnetic force which has a field and it’s quantum). We are accelerating not because of the force applied to us but rather because of time-space curving around masses. That’s the current view per general relativity theory.
What are the gyro values for in the kalman filter?
Hello!
I am extremely interested in this Kalman Filter but unfortunately I am unable to let it calculate a positive acceleration, regardless of the Inputs (and signs) I provide. Here is a very simple sample code with two variations but the result is always the same, the Kalman filter returns always negative velocity and negative acceleration :(
altitude.getAltitude(), altitude.getVerticalVelocity() and altitude.getVerticalAcceleration() return always negative values, regardless of sign of value assigned to accelData[2], i.e. accelData[2] = -0.1; and accelData[2] = 0.1; lead always to the same results.
Can you please help?
PS: I previously tried with real IMU and pressure sensor data from BNO085 and BMP390 but since that didn't work I tried the basic example above and still I get the same results: always negative acceleration, negative velocity, decreasing altitude, regardless of the signs of the IMU signals