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

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

#include <latch.h>

Public Member Functions

void run ()
 Runs latching mechanism.
 
 Latch ()
 
void toggle ()
 Toggles latch state.
 

Detailed Description

The Latch class represents a latching mechanism.

Definition at line 8 of file latch.h.

Constructor & Destructor Documentation

◆ Latch()

Latch::Latch ( )

Definition at line 14 of file latch.cpp.

14{ ; }

Member Function Documentation

◆ run()

void Latch::run ( )

Runs latching mechanism.

Definition at line 8 of file latch.cpp.

8 {
9 if (controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_B)) {
11 }
12}
void toggle()
Toggles latch state.
Definition latch.cpp:16
pros::Controller controller(pros::E_CONTROLLER_MASTER)

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

Referenced by opcontrol().

◆ toggle()

void Latch::toggle ( )

Toggles latch state.

Definition at line 16 of file latch.cpp.

16{ LatchControl.toggle(); }
pros::adi::Pneumatics LatchControl('A', false)

References Robot::Globals::LatchControl().

Referenced by Robot::Autonomous::Auton1(), Robot::Autonomous::Auton2(), and run().


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