#pragma once #include "api.h" #include "pros/adi.hpp" #include "pros/motors.hpp" #include "pros/motor_group.hpp" namespace ez { enum class ControlPeriodM { driver, auton }; enum class ControllerM { master, slave }; enum class ButtonsM { arrow_buttons, Y_B_buttons, left_shoulder_buttons, right_shoulder_buttons }; enum class MotorGroups { lift_MG, claw_M, roller_M }; class Mechanisms { private: public: float fw_motor_speed = 0; float rev_motor_speed = 0; Mechanisms(); void motor_control(enum ControlPeriodM, enum ControllerM, enum ButtonsM, enum MotorGroups, float fw_motor_speed, float rev_motor_speed); float get_motor_speed(); float set_motor_speed(float value); }; };