2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
Robot Class Reference

#include <Robot.h>

Inheritance diagram for Robot:

Public Member Functions

 Robot ()
 
void RobotInit () override
 
void RobotPeriodic () override
 
void DisabledInit () override
 
void DisabledPeriodic () override
 
void AutonomousInit () override
 
void AutonomousPeriodic () override
 
void TeleopInit () override
 
void TeleopPeriodic () override
 
void TestPeriodic () override
 
void SimulationInit () override
 
void SimulationPeriodic () override
 

Private Attributes

frc2::Command * m_pAutonomousCommand
 
frc::DriverStation::Alliance m_lastAlliance
 
RobotContainer m_container
 
argos_lib::Debouncer m_connectedToFieldDebouncer
 

Detailed Description

Constructor & Destructor Documentation

◆ Robot()

Robot::Robot ( )

Member Function Documentation

◆ AutonomousInit()

void Robot::AutonomousInit ( )
override

This autonomous runs the autonomous command selected by your RobotContainer class.

◆ AutonomousPeriodic()

void Robot::AutonomousPeriodic ( )
override

◆ DisabledInit()

void Robot::DisabledInit ( )
override

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.

◆ DisabledPeriodic()

void Robot::DisabledPeriodic ( )
override

◆ RobotInit()

void Robot::RobotInit ( )
override

◆ RobotPeriodic()

void Robot::RobotPeriodic ( )
override

This function is called every 20 ms, no matter the mode. Use this for items like diagnostics that you want to run during disabled, autonomous, teleoperated and test.

This runs after the mode specific periodic functions, but before LiveWindow and SmartDashboard integrated updating.

◆ SimulationInit()

void Robot::SimulationInit ( )
override

This function is called once when the robot is first started up.

◆ SimulationPeriodic()

void Robot::SimulationPeriodic ( )
override

This function is called periodically whilst in simulation.

◆ TeleopInit()

void Robot::TeleopInit ( )
override

◆ TeleopPeriodic()

void Robot::TeleopPeriodic ( )
override

This function is called periodically during operator control.

◆ TestPeriodic()

void Robot::TestPeriodic ( )
override

This function is called periodically during test mode.

Member Data Documentation

◆ m_connectedToFieldDebouncer

argos_lib::Debouncer Robot::m_connectedToFieldDebouncer
private

◆ m_container

RobotContainer Robot::m_container
private

◆ m_lastAlliance

frc::DriverStation::Alliance Robot::m_lastAlliance
private

◆ m_pAutonomousCommand

frc2::Command* Robot::m_pAutonomousCommand
private

The documentation for this class was generated from the following files: