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
5
using namespace
Robot
;
6
using namespace
Robot::Globals
;
7
8
void
Latch::run
() {
9
if
(
controller
.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_B)) {
10
Latch::toggle
();
11
}
12
}
13
14
Latch::Latch
() { ; }
15
16
void
Latch::toggle
() {
LatchControl
.toggle(); }
Robot::Latch::run
void run()
Runs latching mechanism.
Definition
latch.cpp:8
Robot::Latch::Latch
Latch()
Definition
latch.cpp:14
Robot::Latch::toggle
void toggle()
Toggles latch state.
Definition
latch.cpp:16
latch.h
Robot::Globals
Definition
globals.cpp:20
Robot::Globals::LatchControl
pros::adi::Pneumatics LatchControl('A', false)
Robot::Globals::controller
pros::Controller controller(pros::E_CONTROLLER_MASTER)
Robot
Definition
auton.h:8
src
subsystems
latch.cpp
Generated on Sat Jan 11 2025 13:28:26 for 1516X High Stakes by
1.13.1