1516b Over Under 2.0
Codebase for 1516b over under season
|
Contains global variables and type definitions for the Robot namespace. More...
Functions | |
pros::Controller | controller (pros::E_CONTROLLER_MASTER) |
pros::Motor | RightFront (6, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | LeftFront (-5, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | LeftBack (-7, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | RightBack (8, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | LeftMid (-2, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | PuncherMotor (-19, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | PuncherMotor2 (20, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | RightMid (3, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Motor | IntakeMotor (-9, pros::E_MOTOR_GEARSET_18, false, pros::E_MOTOR_ENCODER_DEGREES) |
pros::Imu | inertial_sensor (15) |
pros::Distance | distance (18) |
pros::ADIDigitalOut | wing ('A') |
pros::ADIDigitalOut | wing2 ('D') |
pros::ADIDigitalOut | pto_1 ('B') |
pros::ADIDigitalOut | pto_2 ('C') |
pros::Motor_Group | punchers ({PuncherMotor, PuncherMotor2}) |
pros::Motor_Group | drive_left ({LeftFront, LeftMid, LeftBack}) |
pros::Motor_Group | drive_right ({RightFront, RightMid, RightBack}) |
pros::Motor_Group | drive_ ({LeftFront, RightFront, LeftMid, RightMid, LeftBack, RightBack}) |
lemlib::Chassis | chassis (drivetrain, lateralController, angularController, sensors) |
Variables | |
lemlib::Drivetrain_t | drivetrain |
lemlib::OdomSensors_t | sensors |
lemlib::ChassisController_t | lateralController |
lemlib::ChassisController_t | angularController |
pros::Controller | controller |
Robot::Wings | robotWings |
pros::Motor | RightFront |
pros::Motor | LeftFront |
pros::Motor | LeftBack |
pros::Motor | RightBack |
pros::Motor | LeftMid |
pros::Motor | PuncherMotor |
pros::Motor | PuncherMotor2 |
pros::Motor | RightMid |
pros::Motor | IntakeMotor |
pros::Imu | inertial_sensor |
pros::Distance | distance |
pros::ADIDigitalOut | wing |
pros::ADIDigitalOut | wing2 |
pros::ADIDigitalOut | pto_1 |
pros::ADIDigitalOut | pto_2 |
pros::Motor_Group | punchers |
pros::Motor_Group | drive_left |
pros::Motor_Group | drive_right |
pros::Motor_Group | drive_ |
lemlib::Chassis | chassis |
Contains global variables and type definitions for the Robot namespace.
The majority of the global variables are defined in the Globals namespace. This is to allow for easy access to the variables from any file in the project. The Globals namespace is also used to hold lemlib objects that are used to control the autonomous functions of the robot. It contains parameters that are used to control the PID that lemlib uses, additionally.
lemlib::Chassis Robot::Globals::chassis | ( | drivetrain | , |
lateralController | , | ||
angularController | , | ||
sensors | ) |
pros::Controller Robot::Globals::controller | ( | pros::E_CONTROLLER_MASTER | ) |
pros::Distance Robot::Globals::distance | ( | 18 | ) |
pros::Motor_Group Robot::Globals::drive_right | ( | {RightFront, RightMid, RightBack} | ) |
References RightBack, RightFront, and RightMid.
pros::Imu Robot::Globals::inertial_sensor | ( | 15 | ) |
pros::Motor Robot::Globals::IntakeMotor | ( | - | 9, |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::LeftBack | ( | - | 7, |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::LeftFront | ( | - | 5, |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::LeftMid | ( | - | 2, |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::ADIDigitalOut Robot::Globals::pto_1 | ( | 'B' | ) |
pros::ADIDigitalOut Robot::Globals::pto_2 | ( | 'C' | ) |
pros::Motor Robot::Globals::PuncherMotor | ( | - | 19, |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::PuncherMotor2 | ( | 20 | , |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor_Group Robot::Globals::punchers | ( | {PuncherMotor, PuncherMotor2} | ) |
References PuncherMotor, and PuncherMotor2.
pros::Motor Robot::Globals::RightBack | ( | 8 | , |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::RightFront | ( | 6 | , |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::Motor Robot::Globals::RightMid | ( | 3 | , |
pros::E_MOTOR_GEARSET_18 | , | ||
false | , | ||
pros::E_MOTOR_ENCODER_DEGREES | ) |
pros::ADIDigitalOut Robot::Globals::wing | ( | 'A' | ) |
pros::ADIDigitalOut Robot::Globals::wing2 | ( | 'D' | ) |
lemlib::ChassisController_t Robot::Globals::angularController |
Definition at line 73 of file globals.cpp.
|
extern |
Referenced by Robot::Autonomous::Auton1(), Robot::Autonomous::Auton2(), Robot::Utility::displayLocation(), and initialize().
|
extern |
|
extern |
Referenced by Robot::Puncher::toShoot().
|
extern |
|
extern |
Referenced by Robot::Drivetrain::ArcadeDrive(), and Robot::Drivetrain::TankDrive().
|
extern |
Referenced by Robot::Drivetrain::ArcadeDrive(), and Robot::Drivetrain::TankDrive().
lemlib::Drivetrain_t Robot::Globals::drivetrain |
Definition at line 44 of file globals.cpp.
|
extern |
|
extern |
Referenced by Robot::Intake::run().
lemlib::ChassisController_t Robot::Globals::lateralController |
Definition at line 62 of file globals.cpp.
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_left().
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_left().
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_left().
|
extern |
|
extern |
|
extern |
Referenced by punchers().
|
extern |
Referenced by punchers().
|
extern |
Referenced by Robot::Puncher::run().
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_right().
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_right().
|
extern |
Referenced by Robot::Utility::displayMotorVel(), drive_(), and drive_right().
|
extern |
lemlib::OdomSensors_t Robot::Globals::sensors |
Definition at line 52 of file globals.cpp.
|
extern |
Referenced by Robot::Wings::run().
|
extern |
Referenced by Robot::Wings::run().