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

ArduPilot custom controller: Rename a_Kb, a_Kg -> a_b, a_g #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ybeyer
Copy link
Contributor

@ybeyer ybeyer commented Jul 14, 2023

The choice of the variable names a_Kb and a_Kg were unfavorable. The variables are the acceleration in the body-fixed coordinate system b and earth-fixed coordinate system g. The index K indicates a motion from the body relative to the earth. However, the variables a_Kg and a_Kb are defined to represent the acceleration measured by the IMU and thus contain the gravitational acceleration. To avoid confusion in the future, the "K"s in the variable names have been removed. Moreover, the comments in the functions were supplemented, so that the definition of the variables becomes clear.
Unfortunately, this change will cause errors in old projects.

The choice of the variable names a_Kb and a_Kg were
unfavorable. The variables are the acceleration in the
body-fixed coordinate system b and earth-fixed coordinate
system g. The index K indicates a motion from the body
relative to the earth. However, the variables a_Kg and
a_Kb are defined to represent the acceleration measured
by the IMU and thus contain the gravitational acceleration.
To avoid confusion in the future, the "K"s in the variable
names have been removed. Moreover, the comments in the
functions were supplemented, so that the definition of the
variables becomes clear.
Unfortunately, this change will cause errors in old
projects.
@ybeyer ybeyer requested a review from fguecker July 14, 2023 15:52
Copy link
Contributor

@fguecker fguecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifications were necessary to clearly distinguish the measured velocity from the kinematic one, as this has already led to problems in flight tests. These changes are accurate and were successfully validated in flight tests on 18 July 2023.

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

Successfully merging this pull request may close these issues.

2 participants