HWP supervisor iboot indexing bugfix #722
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes how the supervisor indexes iboot outlets when querying their state. This change only effects how the outlet states are reported in the
monitor
session data (actual functions using the iboot outlets are uneffected)Description
Subtracts one from the supplied outlet number, as the iboot outlets are indexed 0-7 while the outlet input argument is indexed 1-8.
Motivation and Context
This fix ensures that the session data is accurate. Additionally, the supervisor agent would previously crash with an index error whenever trying to use outlet 8 (which is the case for the satp2 gripper power supplies)
How Has This Been Tested?
I tested this fix with the satp2 hwp.

Outlet states:
Before change:

After change:

Types of changes
Checklist: