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

AC_AttitudeControl: ensure yaw gets a FLTD default #26263

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class AC_AttitudeControl_Multi : public AC_AttitudeControl {
.imax = AC_ATC_MULTI_RATE_YAW_IMAX,
.filt_T_hz = AC_ATC_MULTI_RATE_RP_FILT_HZ,
.filt_E_hz = AC_ATC_MULTI_RATE_YAW_FILT_HZ,
.filt_D_hz = 0.0f,
.filt_D_hz = AC_ATC_MULTI_RATE_RP_FILT_HZ,
Copy link
Member

Choose a reason for hiding this comment

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

Its a bit upsetting that its using RATE_RP (roll pitch) but filt T is the same....

In fact filt_E is useing AC_ATC_MULTI_RATE_YAW_FILT_HZ and filt_T_hz is using AC_ATC_MULTI_RATE_RP_FILT_HZ its all a bit odd....

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeh, I can see how this is a little confusing or unclear. What would you suggest?

The end result is we want roll, pitch and yaw filter T and D to be the same (20.0)
roll and pitch filter E to be 0.0
yaw filter E to be 2.0

There is an opportunity here to make this clear for the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

LOL, I originally did a bigger change that changed the names but figured this was better for 4.5 :-P

.srmax = 0,
.srtau = 1.0
}
Expand Down
Loading