1516b Over Under 2.0
Codebase for 1516b over under season
Loading...
Searching...
No Matches
Robot::Intake Class Reference

The Intake class represents a robot intake system. More...

#include <intake.h>

Public Member Functions

void run ()
 Runs the main function of the intake system.
 

Detailed Description

The Intake class represents a robot intake system.

Definition at line 8 of file intake.h.

Member Function Documentation

◆ run()

void Robot::Intake::run ( )

Runs the main function of the intake system.

This function takes user input to control the intake system.

Definition at line 7 of file intake.cpp.

7 {
8 if (controller.get_digital(pros::E_CONTROLLER_DIGITAL_L1)) {
9 IntakeMotor.move(127);
10 }
11 else if (controller.get_digital(pros::E_CONTROLLER_DIGITAL_R1)) {
12 IntakeMotor.move(-127);
13 }
14 else {
15 IntakeMotor.brake();
16 }
17}
pros::Controller controller
pros::Motor IntakeMotor

References Robot::Globals::controller, and Robot::Globals::IntakeMotor.

Referenced by opcontrol().


The documentation for this class was generated from the following files: