Skip to content

BUG: Remove duplicate controller call in Flight.__simulate#960

Closed
Krissal1234 wants to merge 1 commit into
RocketPy-Team:developfrom
Krissal1234:fix/duplicate-controller-call-in-simulate
Closed

BUG: Remove duplicate controller call in Flight.__simulate#960
Krissal1234 wants to merge 1 commit into
RocketPy-Team:developfrom
Krissal1234:fix/duplicate-controller-call-in-simulate

Conversation

@Krissal1234
Copy link
Copy Markdown

Pull request type

  • Code changes (bugfix, features)

Checklist

  • CHANGELOG.md has been updated (if relevant)

Current behavior

Controllers are called twice per time node in Flight.__simulate. See #959.

New behavior

Controllers are called exactly once per time node, inside
__process_sensors_and_controllers_at_current_node as intended.

Breaking change

  • No

Additional information

The duplicate loop was introduced in #843 when
__process_sensors_and_controllers_at_current_node was added
for sensor and controller processing, but the original
controller loop in __simulate was not removed.

@Krissal1234 Krissal1234 requested a review from a team as a code owner May 8, 2026 10:50
@Gui-FernandesBR Gui-FernandesBR changed the base branch from master to develop May 27, 2026 00:25
@Gui-FernandesBR Gui-FernandesBR requested a review from Copilot May 27, 2026 00:26
@Gui-FernandesBR Gui-FernandesBR force-pushed the fix/duplicate-controller-call-in-simulate branch from 52f9086 to 9b31d26 Compare May 27, 2026 00:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR is intended to document a bug fix for duplicate controller execution during flight simulation.

Changes:

  • Adds a changelog entry for removing the duplicate controller call in Flight.__simulate.

Comment thread CHANGELOG.md
- BUG: Duplicate _controllers in Flight.TimeNodes.merge() [#931](https://github.com/RocketPy-Team/RocketPy/pull/931)
- BUG: Fix incorrect Jacobian in `only_radial_burn` branch of `SolidMotor.evaluate_geometry` [#935](https://github.com/RocketPy-Team/RocketPy/pull/935)
- BUG: Add explicit timeouts to ThrustCurve API requests [#935](https://github.com/RocketPy-Team/RocketPy/pull/935)
- BUG: Remove duplicate controller call in Flight.__simulate [#959](https://github.com/RocketPy-Team/RocketPy/issues/959)
@Gui-FernandesBR
Copy link
Copy Markdown
Member

seems like this problem has already been solved. We just have to locate the original PR and link it here

@MateusStano
Copy link
Copy Markdown
Member

Closing because this was already solved in #949

@Gui-FernandesBR Gui-FernandesBR added the Duplicate This issue or pull request already exists label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants