48 lines
979 B
C++
48 lines
979 B
C++
#include "main.h"
|
|
#include "EZ-Template/api.hpp"
|
|
#include "api.h"
|
|
|
|
#pragma once
|
|
|
|
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
/**
|
|
* Sets up the master and slave controllers.
|
|
*/
|
|
inline pros::Controller master(pros::E_CONTROLLER_MASTER);
|
|
inline pros::Controller slave(pros::E_CONTROLLER_PARTNER);
|
|
|
|
/**
|
|
* Declares mechinism motors and motor groups.
|
|
*/
|
|
inline pros::MotorGroup lift({-1, 2});
|
|
inline pros::Motor claw({9});
|
|
inline pros::Motor roller({5});
|
|
|
|
/**
|
|
* Declares piston mechanisms.
|
|
*/
|
|
inline ez::Piston PlaceHolder({'G',true});
|
|
|
|
/**
|
|
* Declare limit switches and other ADI sensors
|
|
*/
|
|
//inline pros::ADIDigitalIn liftReset ('A');
|
|
//inline pros::ADIDigitalIn armReset('B');
|
|
|
|
/**
|
|
* Declares all sensors.
|
|
*
|
|
* [1] - Rotation sensors
|
|
*
|
|
* [2] - Color sensors
|
|
*/
|
|
inline pros::Rotation liftRotation({18});
|
|
inline pros::Rotation armRotation({0});
|
|
inline pros::Rotation wristRotation({0});
|
|
|
|
inline pros::Optical colorSensorOne({7});
|
|
inline pros::Optical colorSensorTwo({8});
|
|
|
|
#endif |