-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added base intake class #18
Conversation
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.
add syntaxical annotation for all methods
components/intake.py
Outdated
|
||
|
||
class Intake: | ||
shooter_motor: wpilib.Talon |
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.
best not to assume hardware for a skeleton
components/intake.py
Outdated
def deploy(self): | ||
self.deployed = True | ||
|
||
def is_ready(self): |
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.
add magicbot feedback decorator
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.
I think, generally for intake there can be three feedback methods
- is_note_present
- is_fully_retracted
- is_fully_deployed
components/intake.py
Outdated
|
||
|
||
class Intake: | ||
shooter_motor: wpilib.Talon |
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.
plz rename adequately for your variables intake isn't shooting...
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.
agreed, this one should be simply named motor
; you already know this is the intake
#17 I think this can help |
Duplicate of #17 |
Scaffold intake class for this season