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
6using namespace Robot;
7using namespace Robot::Globals;
8
9void Hang::run() {
10 if (controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_A)) {
12 }
13}
14
16
17void Hang::toggle() { HangControl.toggle(); }
void run()
Runs Hanging mechanism.
Definition hang.cpp:9
void toggle()
Toggles Hang state.
Definition hang.cpp:17
pros::adi::Pneumatics HangControl('C', false)
pros::Controller controller(pros::E_CONTROLLER_MASTER)
Definition auton.h:8