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

The Hang class represents a Hanging mechanism. More...

#include <hang.h>

Public Member Functions

void run ()
 Runs Hanging mechanism.
 
 Hang ()
 
void toggle ()
 Toggles Hang state.
 

Detailed Description

The Hang class represents a Hanging mechanism.

Definition at line 8 of file hang.h.

Constructor & Destructor Documentation

◆ Hang()

Hang::Hang ( )

Definition at line 15 of file hang.cpp.

15{ ; }

Member Function Documentation

◆ run()

void Hang::run ( )

Runs Hanging mechanism.

Definition at line 9 of file hang.cpp.

9 {
10 if (controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_A)) {
12 }
13}
void toggle()
Toggles Hang state.
Definition hang.cpp:17
pros::Controller controller(pros::E_CONTROLLER_MASTER)

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

◆ toggle()

void Hang::toggle ( )

Toggles Hang state.

Definition at line 17 of file hang.cpp.

17{ HangControl.toggle(); }
pros::adi::Pneumatics HangControl('C', false)

References Robot::Globals::HangControl().

Referenced by run().


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