1516X High Stakes
2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
hang.cpp
Go to the documentation of this file.
1
#include "
robot/hang.h
"
2
3
#include "globals.h"
4
#include "pros/misc.h"
5
6
using namespace
Robot
;
7
using namespace
Robot::Globals
;
8
9
void
Hang::run
() {
10
if
(
controller
.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_A)) {
11
Hang::toggle
();
12
}
13
}
14
15
Hang::Hang
() { ; }
16
17
void
Hang::toggle
() {
HangControl
.toggle(); }
Robot::Hang::run
void run()
Runs Hanging mechanism.
Definition
hang.cpp:9
Robot::Hang::Hang
Hang()
Definition
hang.cpp:15
Robot::Hang::toggle
void toggle()
Toggles Hang state.
Definition
hang.cpp:17
hang.h
Robot::Globals
Definition
globals.cpp:20
Robot::Globals::HangControl
pros::adi::Pneumatics HangControl('C', false)
Robot::Globals::controller
pros::Controller controller(pros::E_CONTROLLER_MASTER)
Robot
Definition
auton.h:8
src
subsystems
hang.cpp
Generated on Sat Jan 11 2025 13:28:26 for 1516X High Stakes by
1.13.1