1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
globals.cpp File Reference
#include "globals.h"
#include "pros/abstract_motor.hpp"
#include "pros/misc.hpp"
#include "pros/motors.hpp"
#include "pros/vision.h"
#include "pros/vision.hpp"

Go to the source code of this file.

Namespaces

namespace  Robot
 
namespace  Robot::Globals
 

Functions

pros::Controller Robot::Globals::controller (pros::E_CONTROLLER_MASTER)
 
pros::Controller Robot::Globals::partner (pros::E_CONTROLLER_PARTNER)
 
pros::Motor Robot::Globals::RightFront (13, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::LeftFront (-19, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::LeftBack (-18, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::RightBack (12, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::LeftMid (20, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::RightMid (-11, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::IntakeMotor (-1, pros::v5::MotorGears::blue, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::HookMotor (-2, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees)
 
pros::Motor Robot::Globals::LadyBrownMotor (3, pros::v5::MotorGears::green, pros::v5::MotorUnits::degrees)
 
pros::adi::Pneumatics Robot::Globals::LatchControl ('A', false)
 
pros::adi::Pneumatics Robot::Globals::HangControl ('C', false)
 
pros::adi::Pneumatics Robot::Globals::SweeperControl ('B', false)
 
pros::Distance Robot::Globals::distance_sensor (10)
 
pros::Rotation Robot::Globals::lateral_sensor (16)
 
pros::Rotation Robot::Globals::horizontal_sensor (17)
 
pros::Imu Robot::Globals::inertial_sensor (14)
 
pros::Vision Robot::Globals::colorSensor (4)
 
pros::MotorGroup Robot::Globals::drive_left ({LeftFront.get_port(), LeftMid.get_port(), LeftBack.get_port()})
 
pros::MotorGroup Robot::Globals::drive_right ({RightFront.get_port(), RightMid.get_port(), RightBack.get_port()})
 
pros::MotorGroup Robot::Globals::drive_ ({LeftFront.get_port(), RightFront.get_port(), LeftMid.get_port(), RightMid.get_port(), LeftBack.get_port(), RightBack.get_port()})
 
lemlib::ControllerSettings Robot::Globals::lateral_controller (5.25, 0, 13, 3, 1, 100, 3, 500, 20)
 
lemlib::ControllerSettings Robot::Globals::angular_controller (1.73, 0, 9, 3, 1, 100, 2, 500, 0)
 
lemlib::ExpoDriveCurve Robot::Globals::throttle_curve (3, 15, 1.019)
 
lemlib::ExpoDriveCurve Robot::Globals::steer_curve (3, 17, 1.01)
 
lemlib::Chassis Robot::Globals::chassis (drivetrain, lateral_controller, angular_controller, sensors, &throttle_curve, &steer_curve)
 

Variables

pros::vision_signature_s_t Robot::Globals::RED_SIG
 
pros::vision_signature_s_t Robot::Globals::BLUE_SIG
 
pros::vision_signature_s_t Robot::Globals::BLUE_DARK_SIG
 
lemlib::TrackingWheel horizontal_tracking_wheel & Robot::Globals::horizontal_sensor
 
lemlib::TrackingWheel vertical_tracking_wheel & Robot::Globals::lateral_sensor
 
lemlib::Drivetrain Robot::Globals::drivetrain
 
lemlib::OdomSensors Robot::Globals::sensors