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

Added base intake class #18

Closed
wants to merge 3 commits into from
Closed

Added base intake class #18

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 11, 2024

Scaffold intake class for this season

@outsidermm outsidermm linked an issue Jan 11, 2024 that may be closed by this pull request
Copy link
Member

@outsidermm outsidermm left a 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



class Intake:
shooter_motor: wpilib.Talon
Copy link
Member

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

def deploy(self):
self.deployed = True

def is_ready(self):
Copy link
Member

Choose a reason for hiding this comment

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

add magicbot feedback decorator

Copy link
Member

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

  1. is_note_present
  2. is_fully_retracted
  3. is_fully_deployed



class Intake:
shooter_motor: wpilib.Talon
Copy link
Member

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...

Copy link
Member

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

@outsidermm
Copy link
Member

#17 I think this can help

@auscompgeek
Copy link
Member

Duplicate of #17

@auscompgeek auscompgeek marked this as a duplicate of #17 Jan 13, 2024
@auscompgeek auscompgeek added the duplicate This issue or pull request already exists label Jan 13, 2024
@auscompgeek auscompgeek deleted the createIntakeComponent branch January 13, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add skeletons for subsystems
3 participants