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 shooter class #19

Merged
merged 8 commits into from
Jan 15, 2024
Merged

Added base shooter class #19

merged 8 commits into from
Jan 15, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jan 11, 2024

This is the base for the shooter class

@outsidermm outsidermm linked an issue Jan 11, 2024 that may be closed by this pull request
components/shooter.py Outdated Show resolved Hide resolved
components/shooter.py Outdated Show resolved Hide resolved
components/shooter.py Outdated Show resolved Hide resolved
"""Causes the shooter motor to spin"""
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.

I think we should make these so-called "feedback" functions with feedback decorators from magicbot

e.g.
@feedback
def is_ready(self) -> bool


def is_ready(self):
return True

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 it's safe to say we need more feedback methods.
I'm thinking of two feedback methods:

  1. actual_velocity
  2. flywheel error

components/shooter.py Outdated Show resolved Hide resolved
@fotnitfpro000 fotnitfpro000 merged commit 45b50c7 into main Jan 15, 2024
3 checks passed
@fotnitfpro000 fotnitfpro000 deleted the ShooterComponent branch January 15, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add skeletons for subsystems
4 participants