Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Fix optional absolute encoder for Spark devices#298

Merged
thenetworkgrinch merged 3 commits intoYet-Another-Software-Suite:devfrom
MetabolicCloth:spark-attached-encoder
Jan 15, 2025
Merged

Fix optional absolute encoder for Spark devices#298
thenetworkgrinch merged 3 commits intoYet-Another-Software-Suite:devfrom
MetabolicCloth:spark-attached-encoder

Conversation

@MetabolicCloth
Copy link

Updated the attached encoder logic to follow the optional structuring of the sparkmax, across the flex & brushed classes. Fixed the logic isAttachedAbsoluteEncoder()

Copy link
Contributor

@thenetworkgrinch thenetworkgrinch left a comment

Choose a reason for hiding this comment

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

Line 374 needs changed too, since it does a null check instead of an optional check too

position = this.absoluteEncoder.get()::getAbsolutePosition;
noEncoderDefinedAlert.set(false);
}
if (absoluteEncoder == null && this.encoder.isEmpty())
Copy link
Contributor

Choose a reason for hiding this comment

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

This check is wrong now too

@thenetworkgrinch thenetworkgrinch merged commit b76f927 into Yet-Another-Software-Suite:dev Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants