1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
latch.cpp
Go to the documentation of this file.
1#include "robot/latch.h"
2
3#include "globals.h"
4
5using namespace Robot;
6using namespace Robot::Globals;
7
8void Latch::run() {
9 if (controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_B)) {
11 }
12}
13
15
16void Latch::toggle() { LatchControl.toggle(); }
void run()
Runs latching mechanism.
Definition latch.cpp:8
void toggle()
Toggles latch state.
Definition latch.cpp:16
pros::adi::Pneumatics LatchControl('A', false)
pros::Controller controller(pros::E_CONTROLLER_MASTER)
Definition auton.h:8