1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
Robot::Sweeper Class Reference

The Latch class represents a latching mechanism. More...

#include <sweeper.h>

Public Member Functions

void run ()
 Runs sweeper.
 
 Sweeper ()
 

Detailed Description

The Latch class represents a latching mechanism.

Definition at line 8 of file sweeper.h.

Constructor & Destructor Documentation

◆ Sweeper()

Sweeper::Sweeper ( )

Definition at line 14 of file sweeper.cpp.

14{ ; }

Member Function Documentation

◆ run()

void Sweeper::run ( )

Runs sweeper.

Definition at line 8 of file sweeper.cpp.

8 {
9 if (controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_Y)) {
10 SweeperControl.toggle();
11 }
12}
pros::adi::Pneumatics SweeperControl('B', false)
pros::Controller controller(pros::E_CONTROLLER_MASTER)

References Robot::Globals::controller(), and Robot::Globals::SweeperControl().


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