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

FlightTaskOrbit: correct acceleration feed-forward #15320

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Jul 13, 2020

Describe problem solved by this pull request
The acceleration setpoint gets implicitly inherited from the altitude flight task since #14212. This feed-forward adds an unwanted acceleration when the right stick is deflected.

Describe your solution
Instead of the wrong acceleration setpoint I command the expected centripetal acceleration when flying in a circle as feed-forward for better orbit tracking. This is only possible since #14212.

Test data / coverage
I SITL tested and the direction and amplitude of the acceleration are exactly like expected.
It also leads to better tracking already with the default orbit radius and a bit increased speed like can be seen in the screenshots below.
Before (malicious feed-forward setpoint removed):
orbit_without_acc
After (adding centripetal acceleration feed-forward):
orbit_with_acc

The acceleration setpoint gets implicitly inherited from the altitude
flight task since #14212. This feed-forward adds an unwanted
acceleration when the right stick is deflected. Instead I'm using it
to command the expected centripetal acceleration when flying
in a circle for better orbit tracking.
@bresch bresch merged commit 624d8a5 into master Jul 14, 2020
@bresch bresch deleted the orbit-feed-forward-acceleration branch July 14, 2020 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants