Skip to content

RunIntakeCommand Command

danielbrownmsm edited this page Mar 18, 2020 · 3 revisions

Overview

The RunIntakeCommand command runs the intake at the specified power

Package

frc.robot.commands.intake

Constructor

The constructor takes two arguments, an intake subsystem and a double representing the power at which you want to run the intake. It does this by calling the intake's runIntake(power) method. Examples shown below.

RunIntakeCommand intakeIn = new RunIntakeCommand(0.75);

RunIntakeCommand intakeOut = new RunIntakeCommand(-1);

Usage

The command is used in normal Tele-Op as well as anywhere in autonomous where we would want to intake power cells

Clone this wiki locally