Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random movement in quad pitch and roll when GPS is enabled #2147

Open
cptX opened this issue Jul 16, 2024 · 7 comments
Open

Random movement in quad pitch and roll when GPS is enabled #2147

cptX opened this issue Jul 16, 2024 · 7 comments

Comments

@cptX
Copy link

cptX commented Jul 16, 2024

When being in the configurator in the Setup Tab I was viewing random movement of the quad, although it was sitting still on the table. Please see the attached video.

moving_inav.mp4

Initially I thought that a sensor was giving noise but I checked all inputs at the Sensors Tab and everything was stable. Then I disabled the GPS and the random movement of the quad in the Setup Tab was gone.

This made me very curious why the system was making random movements on roll and pitch axis if the gps gives info only about the position in the horizontal plane and provides absolutely no info of the roll and pitch orientation? Is this a bug of the inav firmware, a bug of the inav configurator or no bug at all? If the gps info affects pitch and roll in firmware this could lead to unstable flight and worse position hold.

Please note, that my tests are in house and the gps was getting 5-6 satellites under the roof... My most recent experiments show that the quad appears stable until 6 sats are acquired, then starts jittering... This shows that the extra info coming from gps affects pitch & roll, which in my eyes should not happen.

@cptX cptX changed the title Random movement in quad position when GPS is enabled Random movement in quad pitch and roll when GPS is enabled Jul 16, 2024
@Jetrell
Copy link

Jetrell commented Jul 17, 2024

@cptX That's a normal function when GNSS position data is being used to update/augment/correct the attitude reference, from the effects of inflight accelerometer drift..
What you are seeing is noticeable when the delusion of precision is higher and the FC is not actively stabilizing the aircraft, as it would be in flight.

@cptX
Copy link
Author

cptX commented Jul 18, 2024

@Jetrell I don't understand why getting new position data from gps affects the stationary pitch and roll. What I mean, is what we see here is the result of the fc kalman filters to change the pitch and roll accordingly in order to move to the new position the gps has given? GPS cannot give info about pitch and roll so how the pitch and roll angles are affected if all sensors are providing the same input?

@Jetrell
Copy link

Jetrell commented Jul 18, 2024

GPS cannot give info about pitch and roll so how the pitch and roll angles are affected if all sensors are providing the same input?

Axis position is based on gyro rotation and the accelerometer confirming that by measured gravity vector. But this has its limitations when forces other than 1G are applied in flight.. It can lead to the accelerometer reference drifting.

There are dynamic accelerometer weights, using rate ignore, slope and turn. To help correct the error when the aircraft experiences forces greater or less than 1G for a short period of time.. But outside of that, GPS VELNED is used to compensate for speed and centrifugal forces applied to the accelerometer.

Both these methods are combine. And the smoothness in which they transition will vary, depending on how poor the satellite position accuracy is.. This is the jittering you see when the aircraft is motionless with a 3D Sat fix.

You can read up more about how it works in the code if you wish.

@Nimalankarunakaran
Copy link

Hi,i have the same problem please let me know the solution if you have solved the problem thanks

@zied923
Copy link

zied923 commented Aug 30, 2024

Hey, i have the same problem and my fpv crashed twice because of this, im using inav 7.1. 2 with f405 v4 speedybee and M10Q-5883 gps/compass. Any one help please how to reduce this bad behavior at least.

@sensei-hacker
Copy link
Collaborator

Hey, i have the same problem and my fpv crashed twice because of this, im using inav 7.1. 2 with f405 v4 speedybee and M10Q-5883 gps/compass. Any one help please how to reduce this bad behavior at least.

It is unlikely that your aircraft crashed while sitting on the desk because the gyro senses vibrations from a truck driving by on a nearby street. If you are having some problem with your blimp, rover, quadcopter, airplane, or submarine which resulted in a crash, please a open discussion or issue about your problem, and fill in the form so that we can have the information necessary to maybe help you.

@zied923
Copy link

zied923 commented Aug 30, 2024

I m new here so idk how to use github, i will open discussion ( just did it) thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants