Files
VEX-OverRide/include/EZ-Template/pneumatics.hpp
T
Carter 3bbad07dea First I added comments to all the new systems.
Second I finished all the color sorter code, like finishing the function to call when you want to look for a color.
Next we had the scotts county competition so I made custom auton routes for us to run at the competition. These will be changed later.
2026-11-17 07:36:58 -05:00

53 lines
1.0 KiB
C++

#pragma once
#include "api.h"
#include "pros/adi.hpp"
#include "pros/serial.hpp"
#include "EZ-Template/piston.hpp"
namespace ez {
/**
* Enumeration to hold the current part of a match were in.
*/
enum class ControlPeriodP {
driver,
auton
};
/**
* Enumeration to hold the different controllers avalable.
*/
enum class ControllerP {
master,
slave
};
/**
* Enumeration to hold the different buttons to use.
*/
enum class ButtonsP {
arrow_buttons,
Y_B_buttons,
left_shoulder_buttons,
right_shoulder_buttons
};
/**
* Enumeration to hold all the pistons avalable.
*/
enum class PistonsP {
PlaceHolderP
};
class Pneumatics{
private:
bool pistonState;
public:
Pneumatics();
void control_piston(enum PistonsP, enum ControlPeriodP, enum ControllerP, enum ButtonsP);
bool get_piston_state();
void set_piston_state(bool value);
};
};