Skip to content

Conversation

DavidLegg
Copy link
Contributor

  • Tickets addressed: N/A
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

When doing clamped integration, we need to build fixed-time conditions. These conditions fire after a fixed time, computed in advance for performance. Previously, the fixed time condition reported it would be satisfied in a fixed amount of time, regardless of when it was asked. This is incorrect if the condition is queried at any time later than its creation; the condition appears to "retreat" in time as it's queried.

Fix this bug by having the fixedTimeCondition consult the clock, so it can factor in the time elapsed since its creation.

Verification

@bradNASA discovered the faulty behavior, and he tested the change locally for me.

Documentation

N/A

Future work

N/A

When doing clamped integration, we need to build fixed-time conditions. These conditions fire after a fixed time, computed in advance for performance.
Previously, the fixed time condition reported it would be satisfied in a fixed amount of time, regardless of when it was asked.
This is incorrect if the condition is queried at any time later than its creation; the condition appears to "retreat" in time as it's queried.

Fix this bug by having the fixedTimeCondition consult the clock, so it can factor in the time elapsed since its creation.
Copy link

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.

1 participant