1#include "robot/drivetrain.h"
2#include "robot/puncher.h"
19 if(
controller.get_digital(pros::E_CONTROLLER_DIGITAL_R2)) {
41 if (pros::c::registry_get_plugged_type(13) != pros::c::E_DEVICE_DISTANCE) {
57 if(
controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_LEFT)) {
Represents a Puncher mechanism for a robot.
bool distancePuncher
Determines whether to use the distance sensor or not.
void setDistancePuncher(bool punch)
Sets the distancePuncher variable based on the punch parameter.
void PuncherSwitch()
Toggles whether the distance sensor is activated or not and prints it out.
int toShoot()
Checks if the distance sensor is connected and whether to shoot.
void run(int autonVal)
Runs the puncher based on the given autonomous value.
Contains global variables and type definitions for the Robot namespace.
pros::Controller controller
pros::Motor_Group punchers
Contains all objects generated by the 1516B team - Contains all of the subsystems,...