43 lines
745 B
C++
43 lines
745 B
C++
#pragma once
|
|
|
|
#include "api.h"
|
|
#include "pros/adi.hpp"
|
|
#include "pros/serial.hpp"
|
|
#include "EZ-Template/piston.hpp"
|
|
|
|
namespace ez {
|
|
|
|
enum class Pistons {
|
|
claw_piston
|
|
};
|
|
enum class ControlPeriod {
|
|
driver,
|
|
auton
|
|
};
|
|
enum class Controller {
|
|
master,
|
|
slave
|
|
};
|
|
enum class Buttons {
|
|
arrow_buttons,
|
|
Y_B_buttons,
|
|
left_shoulder_buttons,
|
|
right_shoulder_buttons
|
|
};
|
|
|
|
class Pneumatics{
|
|
|
|
private:
|
|
bool pistonState;
|
|
|
|
public:
|
|
|
|
Pneumatics();
|
|
|
|
void control_piston(enum Pistons, enum ControlPeriod, enum Controller, enum Buttons);
|
|
|
|
bool get_piston_state();
|
|
void set_piston_state(bool value);
|
|
|
|
};
|
|
}; |