Skip to content

Fix controller duplication in TimeNodes.merge()#964

Closed
karlhillx wants to merge 1 commit into
RocketPy-Team:developfrom
karlhillx:fix/controller-duplicate-merge
Closed

Fix controller duplication in TimeNodes.merge()#964
karlhillx wants to merge 1 commit into
RocketPy-Team:developfrom
karlhillx:fix/controller-duplicate-merge

Conversation

@karlhillx
Copy link
Copy Markdown

Closes #959

Removed duplicate _controllers += node._controllers in
TimeNodes.merge() that caused each controller to be called
twice per time node during simulation.

Added unit test verifying merge accumulation behavior.

@karlhillx karlhillx requested a review from a team as a code owner June 2, 2026 23:28
@karlhillx karlhillx force-pushed the fix/controller-duplicate-merge branch from e6447b4 to aa01208 Compare June 2, 2026 23:38
@Gui-FernandesBR Gui-FernandesBR changed the base branch from master to develop June 3, 2026 13:39
Remove duplicate _controllers append that caused each controller
to be called twice per simulation time node.

Closes RocketPy-Team#959
@Gui-FernandesBR Gui-FernandesBR force-pushed the fix/controller-duplicate-merge branch from aa01208 to 8e696c6 Compare June 3, 2026 13:39
@Gui-FernandesBR
Copy link
Copy Markdown
Member

the only modified file is a test file. The PR description is not aligned with the PR changes.

I'm closing this PR since it doesn't really solve a problem or improve anything.

Please feel free to improve yout branch and propose a new PR.

Remind to open PRs always heading to the develop branch please

image

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.

BUG: Controllers called twice per time node in Flight.__simulate

2 participants