Ravens Robotics FRC 2015
|
Public Member Functions | |
Robot () | |
Private Member Functions | |
void | RobotInit () |
void | DisabledInit () |
void | DisabledPeriodic () |
void | AutonomousInit () |
void | AutonomousPeriodic () |
void | TeleopInit () |
void | TeleopPeriodic () |
void | TestInit () |
void | TestPeriodic () |
Private Attributes | |
Camera | m_Camera |
Camera RobotComponent. More... | |
MecanumDrive | m_Drive |
MecanumDrive RobotComponent. More... | |
Encoder | encoder |
Ultrasonic | Sonic |
DigitalInput | bottomSwitch |
DigitalInput | topSwitch |
DigitalInput | frontSwitch |
LiveWindow * | lw |
int | autoLoopCounter |
|
inline |
Constructor - According to the docs for IterativeRobot, the initialization being done here should instead be in a RobotInit() function, to ensure that all base-level init is completed before we try using any hardware.
|
inlineprivate |
|
inlineprivate |
Called periodically during autonomous phase.
Periodic() functions – each of these functions is called iteratively at the appropriate periodic rate (aka the "slow loop"). The default period of the iterative robot is synced to the driver station control packets, giving a periodic frequency of about 50Hz (50 times per second).
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Provide for initialization at robot power-on
Definition at line 53 of file Robot.cpp.
References MecanumDrive::ComponentInit(), and Camera::ComponentInit().
|
inlineprivate |
|
inlineprivate |
Called periodically during teleop phase.
< Divides the value taken from the encoder by gear ratio of 71.164, it then divides the result by encoder ratio of 7:1, it will output the # of motor rotations.
Definition at line 114 of file Robot.cpp.
References Camera::DoWork(), MecanumDrive::DoWork(), MecanumDrive::Sense(), and Camera::Sense().
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |