-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Algae #8
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
Conversation
| public interface algaeIO{ | ||
| public interface algaeIO { | ||
| @AutoLog | ||
| public static class IOInputs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name of this class should have algae in it (for clarity reasons otherwise it won't be clear which subsystem this compiled class belongs to)
| @AutoLog | ||
| public static class IOInputs { | ||
| public AngularVelocity velocity; | ||
| public Angle location; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to position to be consistent with other subsystems?
| } | ||
| public void setPosition(double position) { | ||
| // Set the Talon FX to position control mode and set the target position | ||
| talonFX.setPosition(position); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Algae is not a position-based subsystem, it is a closedLoopSpeedSubsystem
you will want to setSpeed, not setPosiiton
you will have probably both a dutyCycle (open loop) control request, and a velocityDutyCycle request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updateInputs should update all of the inputs: position, velocity, beam break
you should use the BaseStatusSignal.refreshAll() syntax to refresh all at once (see exampleSubsystem)
No description provided.