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

Tele op action #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Tele op action #1

wants to merge 3 commits into from

Conversation

kellyrm
Copy link
Collaborator

@kellyrm kellyrm commented Dec 2, 2020

No description provided.

Copy link
Collaborator Author

@kellyrm kellyrm left a comment

Choose a reason for hiding this comment

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

A few things to consider:
You can't have multiple teleops with different button mappings if subsystems capture button input themselves.
Button mappings will also be spread out between multiple files, which may be desired, but also could make it easier to accidentally map one button to multiple actions.

import com.acmerobotics.robomatic.util.StickyGamepad;
import com.qualcomm.robotcore.hardware.Gamepad;

public interface TeleOpActionImpl {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Impl is short for Implementation, this is an interface

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you had some abstract interface and then a default implementation of that interface, you would call the implementation interfacenameImpl

@jbeta02 jbeta02 closed this Dec 4, 2020
@kellyrm kellyrm reopened this Jan 27, 2021
@kellyrm
Copy link
Collaborator Author

kellyrm commented Jan 27, 2021

I noticed the commit adding the field image, go ahead and merge if you want @jbeta02.

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.

2 participants