6 #include <frc/commands/Command.h> 7 #include <frc/smartdashboard/SendableChooser.h> 8 #include <frc/TimedRobot.h> 9 #include <frc/WPILib.h> 10 #include <cscore_oo.h> 12 #include <networktables/NetworkTable.h> 43 #include <frc/PowerDistributionPanel.h> 44 #include <frc/DriverStation.h> 54 void Log(std::string msg);
57 class Robot :
public frc::TimedRobot
static CrawlDrive * m_CrawlDrive
Pointer for the DriveTrain.
TriggerDrive * pTriggerDrive
Pointer for the TriggerDrive command.
void SharedInit()
Used to initalize commands for both auto and teleop. (2019 only)
ClimbManager * pClimbManager
Pointer for the climb management command.
An interface command for toggleing the gripper.
void RobotInit() override
Runs once on robot boot.
A subsystem that interfaces with the robot's cCompressor.
static Arm * m_Arm
Pointer for the Arm.
An interface command for driving the robot with an xbox controller.
PullLeg * pPullLeg
Pointer for the leg debugging command.
An interface command for activating the Pull Arm on the robot.
static cCompressor * m_cCompressor
Pointer for the cCompressor.
static Flap * m_Flap
Pointer for the Cargo Flap.
An interface command for activating the Pull Arm on the robot.
A subsystem that interfaces with the drivebase on the robot.
frc::SendableChooser< frc::Command * > m_chooser
A subsytem that interfaces with the climberbase on the robot.
void DisabledPeriodic() override
Runs in a loop while the robot is disabled.
void TestPeriodic() override
Runs in a loop during test mode.
Operator Interface allows various commands to access the xbox controllers through the DriverStation...
frc::DriverStation & driverStation
DriverStation instance.
An interface command for driving the robot with an xbox controller.
Climb * pClimb
Pointer for the climb control command.
ControlHatchGripper * pControlHatchGripper
Pointer for the finger control command.
void AutonomousPeriodic() override
Runs in a loop during auto.
cs::UsbCamera frontCam
Variable for the front camera.
void RobotPeriodic() override
Runs in a loop while the robot is turned on in any mode.
ControlCargo * pControlCargo
Pointer for the cargo control command.
AutoClimbHigh * pAutoClimbHigh
Pointer for the auto high climb command.
static Slider * m_Slider
Pointer for the Slider.
std::shared_ptr< NetworkTable > ntTelemetry
A pointer to the /SmartDashboard/Telemetry table.
An interface command for driving the robot with an xbox controller.
static OI * m_oi
Pointer for the Operator Interface (OI)
PullArm * pPullArm
Pointer for the arm debugging command.
void Display(clock_t start, clock_t current)
static Piston * m_Piston
Pointer for the Piston.
static HatchGripper * m_HatchGripper
Pointer for the Hatch Gripper.
void AutonomousInit() override
Runs once at the start of auto. Usually while the announcer starts counting down from 3...
static DriveTrain * m_DriveTrain
Pointer for the DriveTrain.
void SharedPeriodic()
Runs during teleop and auto.
void Log(std::string msg)
Main robot class that is called by wpilib.
cs::UsbCamera visionCam
Variable for the Vision camera.
A subsystem that interfaces with the drivebase on the robot.
void DisabledInit() override
Runs once every time the robot is disabled.
An interface command for driving the robot with an xbox controller.
ControlSlider * pControlSlider
Pointer for the ControlSlider command.
static Leg * m_Leg
Pointer for the Leg.
static Light * m_Light
Pointer for the Light.
void TeleopInit() override
Runs once at the start of teleop when the bell sounds.
ControlCompressor * pControlCompressor
Pointer for the ControlCompressor command.
void TeleopPeriodic() override
Runs in a loop during teleop.
An interface command for toggleing the gripper.
ControlLight * pControlLight
Pointer for the vision light control command.
A subsystem that controls the Arm of the robot.