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

Implement DTCANCoder.java #16

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Implement DTCANCoder.java #16

merged 2 commits into from
Apr 14, 2023

Conversation

MathNerd28
Copy link
Member

No description provided.

}

public DTCANCoder(int canID, String canBus) {
internal = new CANCoder(canID, canBus);
Copy link
Member

Choose a reason for hiding this comment

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

Only one of the constructors calls setPositionToAbsolute, is that intentional?

Copy link
Member

Choose a reason for hiding this comment

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

Also I recall that the cancoder can be configured to return values from -180 to 180, or 0 to 360, and it seems like we might want different zero positions depending on the application.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed the constructor, and that is a good addition

@MathNerd28 MathNerd28 requested a review from mmarchetti April 14, 2023 11:50
@MathNerd28 MathNerd28 merged commit fd2155f into master Apr 14, 2023
@MathNerd28 MathNerd28 deleted the cancoder branch April 14, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants