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

Requires retasking should consider the environment's maximum step duration #125

Open
LorenzzoQM opened this issue Mar 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LorenzzoQM
Copy link
Contributor

Describe the bug
Info for "requires_retasking" does not consider the maximum step duration of the environment to specify if the satellite needs retasking.

Expected behavior
The satellite should require retasking if the time elapsed from the last tasking was more than the environment's maximum step duration.

Version:

  • Python: 3.11.6
  • Basilisk: 2.2.2
  • Platform: MacOS 14.3.1
@LorenzzoQM LorenzzoQM added bug Something isn't working triage Needs to be reviewed by a maintainer labels Mar 13, 2024
@Mark2000
Copy link
Contributor

I'm going to take a look at this since I was likewise running into this issue. My thought is to add a flag (either to the satellite or the environment) to say whether the environment timeout should require retaking. Something like require_retasking_on_max_step?

At the same time, I'll address a related issue, which is that an event that is the same duration as max_step_duration will cause the env to stop and return requires_retasking=False, followed by a zero-duration step that returns requires_retasking=True. This is weird and potentially bad for obvious reasons.

@Mark2000 Mark2000 self-assigned this Jul 24, 2024
@Mark2000 Mark2000 removed the triage Needs to be reviewed by a maintainer label Jul 24, 2024
@Mark2000
Copy link
Contributor

For the latter comment I made, it seems that this is because BSK makes sure that events aren't checked twice for one time. For example, if an event triggers at 10 seconds and you run the sim for 10 seconds, then 5 more second, the event will trigger only once at the beginning of the 5 second execution and not at the end of the 10 second execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants