Skip to content

Intake Subsystem#6

Open
theirisproject wants to merge 7 commits intomainfrom
intake
Open

Intake Subsystem#6
theirisproject wants to merge 7 commits intomainfrom
intake

Conversation

@theirisproject
Copy link

IMPORTANT: a lot of this code cannot be run due to the dummy variables as stated in section II

Section I:

  • Added intake classes, including the new IO systems
    - Added IntakeIO, IntakeIOSim, IntakeIOTalonFX, and IntakeIOSparkMax (depending on what motor we end up using)

  • Added basic subsystem Intake classes
    Section II:

  • Added static variables in Constants (IntakeConstants)
    - (IMPORTANT: many variables have dummy numbers/tbd)
    - All variables are public static final __ (number type)

  • Basic implementation of command for the motor(s) [hopefully not]
    - commands like intakeCommand, outtakeCommand, unjamCommand (used if intake system is jammed)
    -

- Created the basic intake code systems for the TalonFX and simulation
- Basic functions started
- Repurposing last years code to this years Intake.java
- Completed IntakeIOSim and IntakeIOTalonFX
From Reefscape-IO-Restructuring
     - Finished repurposing last years code to this years intake
     - added constants
     - added a SparkMaxIO system just in case (as requested by Rafael)
     - IMPORTANT: added constants for intake files in constants, IntakeConstants with values that hold zero (as of now)
      - IMPORTANT: device id's have not been decided
      - IMPORTANT: the speed in which the fuel enters the robot has not been decided
- added comments
- transfered motor ID's to the Intake Constants class
Copy link
Contributor

@rafaelbaird rafaelbaird left a comment

Choose a reason for hiding this comment

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

Some minor fixes, mostly looks good.

public static final double INTAKE_STALL_CURRENT = 0.0; //TODO: set this number
public static final int MOTOR_ID = -1; //TODO: set the device id
public static final

Copy link
Contributor

Choose a reason for hiding this comment

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

I know it says otherwise in the style guide, I'll have to fix that. Instead of putting the class IntakeConstants directly in the Constants.java, can you make it a separate file in the constants folder?

IntakeConstants.INTAKE_FUEL_SPEED),
this).withTimeout(2).finallyDo(() -> {
io.stop();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't want a timeout here


TalonFXConfiguration config = new TalonFXConfiguration();

private static final double MAX_SPEED = 2000;
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need this


@Override
public void stop() {}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

For the three methods above, you need to actually write them.

Desc:
- fixed the stuff rafael told me to :D
theirisproject and others added 2 commits January 28, 2026 18:34
Desc:
- Made IntakeConstants its own file
- fixed bugs in code
- added stuff rafael told me to change/add
Added a real sim
Refactored the code to match other subsystems
Fixed errors
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.

3 participants