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

Mechanism initial and idle requests #140

Open
wants to merge 1 commit into
base: mf3-dev
Choose a base branch
from

Conversation

rcahoon
Copy link
Member

@rcahoon rcahoon commented Oct 3, 2024

Description

Add customization points for a Mechanism to specify an Initial request and Idle request.

The Initial request will be set as the request when the Mechanism is first created. If the Mechanism also defines an Idle request, then the Initial request will only be passed to the first call to run() (after that, the Idle request may take over). Otherwise, the Initial request will be passed to run() until something calls setRequest() on the Mechanism.

The Idle request will be set as the request for the Mechanism when no Procedures are reserving the Mechanism.

Each Mechanism is required to have an Initial request; specifying an Idle request is optional. If no Idle request is specified, the Mechanism will continue to run its last request after the reservation ends.

How Has This Been Tested?

  • Unit tests: Unit tests for new functionality are included
  • Simulator testing: [Add your description here]
  • On-robot bench testing: [Add your description here]
  • On-robot field testing: [Add your description here]

@rcahoon rcahoon requested a review from dejabot October 3, 2024 05:55
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