![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include <intake.h>
Public Member Functions | |
Intake (pros::Motor intake_motor) | |
void | periodic () override |
Periodic runs every frame (10ms) by the command scheduler after the subsystem is registered. | |
void | setPct (const double pct) |
This command moves the intake at a certain voltage potential requested as a percentage [-1, 1]. | |
RunCommand * | pctCommand (const double pct) |
Example way to create commands from class This is useful for simple commands or default commands. | |
~Intake () override=default | |
Private Attributes | |
pros::Motor | intakeMotor |
Intake subsystem
Allows controlling the percentage power of the intake subsystem
|
inlineexplicit |
Construct a new Intake subsystem with pro::Motor object
intake_motor |
Definition at line 25 of file intake.h.
References intakeMotor.
|
overridedefault |
|
inline |
Example way to create commands from class This is useful for simple commands or default commands.
pct | Percentage Desired for this command |
Definition at line 56 of file intake.h.
References setPct().
|
inlineoverride |
Periodic runs every frame (10ms) by the command scheduler after the subsystem is registered.
Definition at line 32 of file intake.h.
References intakeMotor.
|
inline |
This command moves the intake at a certain voltage potential requested as a percentage [-1, 1].
pct | Percent voltage for the intake in the range [-1, 1] |
Definition at line 44 of file intake.h.
Referenced by pctCommand().
|
private |
Store the necessary resources for this subsystem in the private section. Member methods control these resources.
Definition at line 17 of file intake.h.
Referenced by Intake(), and periodic().