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

Remove circular dependency if ControlAllocation and ActuatorEffectiveness #24195

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Jan 10, 2025

... and actuator effectiveness

Solved Problem

ControlAllocation lib depends on ActuatorEffectivenss lib. However, the base class of ActuatorEffectiveness was using an enum defined in ControlAllocation

Solution

Remove circular dependency

Changelog Entry

For release notes:

Feature/Bugfix Removed circular dependency of ActuatorEffectiveness and ControlAllocation

Alternatives

We could also just look the other way. To make life more interesting, maybe we can chain multiple libraries to then form a longer circular dependency. This would be harder to spot.

Test coverage

SITL builds.

make px4_sitl gazebo-classic

Copy link
Contributor

@sfuhrer sfuhrer left a comment

Choose a reason for hiding this comment

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

Good catch!

@Jaeyoung-Lim Jaeyoung-Lim merged commit 208d37e into main Jan 10, 2025
58 of 59 checks passed
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-circular-dependency branch January 10, 2025 15:58
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