#include <Robot.h>
Definition at line 57 of file Robot.h.
◆ AutonomousInit()
void Robot::AutonomousInit |
( |
| ) |
|
|
override |
Runs once at the start of auto. Usually while the announcer starts counting down from 3.
This autonomous (along with the chooser code above) shows how to select between different autonomous modes using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and uncomment the GetString code to get the auto name from the text box below the Gyro.
You can add additional auto modes by adding additional commands to the chooser code above (like the commented example) or additional comparisons to the if-else structure below with additional strings & commands.
Definition at line 173 of file Robot.cpp.
◆ AutonomousPeriodic()
void Robot::AutonomousPeriodic |
( |
| ) |
|
|
override |
Runs in a loop during auto.
Definition at line 196 of file Robot.cpp.
◆ DisabledInit()
void Robot::DisabledInit |
( |
| ) |
|
|
override |
Runs once every time the robot is disabled.
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled.
Definition at line 149 of file Robot.cpp.
◆ DisabledPeriodic()
void Robot::DisabledPeriodic |
( |
| ) |
|
|
override |
Runs in a loop while the robot is disabled.
Definition at line 160 of file Robot.cpp.
◆ RobotInit()
void Robot::RobotInit |
( |
| ) |
|
|
override |
Runs once on robot boot.
Definition at line 49 of file Robot.cpp.
◆ RobotPeriodic()
void Robot::RobotPeriodic |
( |
| ) |
|
|
override |
Runs in a loop while the robot is turned on in any mode.
This function is called every robot packet, no matter the mode. Use this for items like diagnostics that you want ran during disabled, autonomous, teleoperated and test.
This runs after the mode specific periodic functions, but before LiveWindow and SmartDashboard integrated updating.
Definition at line 126 of file Robot.cpp.
◆ SharedInit()
void Robot::SharedInit |
( |
| ) |
|
Used to initalize commands for both auto and teleop. (2019 only)
Definition at line 222 of file Robot.cpp.
◆ SharedPeriodic()
void Robot::SharedPeriodic |
( |
| ) |
|
Runs during teleop and auto.
Definition at line 234 of file Robot.cpp.
◆ TeleopInit()
void Robot::TeleopInit |
( |
| ) |
|
|
override |
Runs once at the start of teleop when the bell sounds.
Definition at line 202 of file Robot.cpp.
◆ TeleopPeriodic()
void Robot::TeleopPeriodic |
( |
| ) |
|
|
override |
Runs in a loop during teleop.
Definition at line 216 of file Robot.cpp.
◆ TestPeriodic()
void Robot::TestPeriodic |
( |
| ) |
|
|
override |
Runs in a loop during test mode.
Definition at line 284 of file Robot.cpp.
◆ driverStation
frc::DriverStation& Robot::driverStation = frc::DriverStation::GetInstance() |
|
private |
DriverStation instance.
Definition at line 110 of file Robot.h.
◆ frontCam
cs::UsbCamera Robot::frontCam |
|
private |
Variable for the front camera.
Definition at line 102 of file Robot.h.
◆ logCurrent
clock_t Robot::logCurrent |
|
private |
◆ logStart
◆ m_Arm
◆ m_cCompressor
◆ m_chooser
frc::SendableChooser<frc::Command*> Robot::m_chooser |
|
private |
◆ m_CrawlDrive
◆ m_DriveTrain
◆ m_Flap
Pointer for the Cargo Flap.
Definition at line 71 of file Robot.h.
◆ m_HatchGripper
Pointer for the Hatch Gripper.
Definition at line 70 of file Robot.h.
◆ m_Leg
◆ m_Light
◆ m_oi
Pointer for the Operator Interface (OI)
Definition at line 68 of file Robot.h.
◆ m_Piston
◆ m_Slider
◆ ntTelemetry
std::shared_ptr<NetworkTable> Robot::ntTelemetry |
|
private |
A pointer to the /SmartDashboard/Telemetry table.
Definition at line 113 of file Robot.h.
◆ pAutoClimbHigh
Pointer for the auto high climb command.
Definition at line 84 of file Robot.h.
◆ pClimb
Pointer for the climb control command.
Definition at line 85 of file Robot.h.
◆ pClimbManager
Pointer for the climb management command.
Definition at line 83 of file Robot.h.
◆ pControlCargo
Pointer for the cargo control command.
Definition at line 81 of file Robot.h.
◆ pControlCompressor
◆ pControlHatchGripper
Pointer for the finger control command.
Definition at line 78 of file Robot.h.
◆ pControlLight
Pointer for the vision light control command.
Definition at line 82 of file Robot.h.
◆ pControlSlider
◆ pGyro
◆ pPullArm
Pointer for the arm debugging command.
Definition at line 76 of file Robot.h.
◆ pPullLeg
Pointer for the leg debugging command.
Definition at line 77 of file Robot.h.
◆ pTriggerDrive
◆ visionCam
cs::UsbCamera Robot::visionCam |
|
private |
Variable for the Vision camera.
Definition at line 103 of file Robot.h.
The documentation for this class was generated from the following files: