MyRobot Class Reference

List of all members.

Public Member Functions

 MyRobot (void)
 ~MyRobot (void)
void RobotInit (void)
void DisabledInit (void)
void AutonomousInit (void)
void AutonomousPeriodic (void)
void TeleopInit (void)
void TeleopPeriodic (void)
void NotifyDrive (__in bool fPIDDrive)

Detailed Description

This class defines and implements the main robot object. It inherits the TrcRobot object which is identical to the IterativeRobot class from the WPI library. It also inherits the DriveNotify interface so that it can provide the notification callback for drive events.


Constructor & Destructor Documentation

MyRobot::MyRobot ( void   )  [inline]

Constructor for the MyRobot class. Create instances of all the components.

MyRobot::~MyRobot ( void   )  [inline]

Destructor for the MyRobot class. Destroy instances of components that were created in the constructor.


Member Function Documentation

void MyRobot::AutonomousInit ( void   )  [inline]

This function is called before starting the autonomous mode.

void MyRobot::AutonomousPeriodic ( void   )  [inline]

This function is called periodically at fixed intervals in autonomous mode.

void MyRobot::DisabledInit ( void   )  [inline]

This function is called before starting the disabled loop. This is used to stop the drive subsystem if we exit out of autonomous or teleop.

void MyRobot::NotifyDrive ( __in bool  fPIDDrive  )  [inline]

This function is called by the TrcDrive object when a drive completion event occurred.

Parameters:
fPIDDrive If true, notify PID drive is done, otherwise, PID turn is done.
void MyRobot::RobotInit ( void   )  [inline]

This function is called one time to do robot-wide initialization.

void MyRobot::TeleopInit ( void   )  [inline]

This function is called before starting the teleop mode.

void MyRobot::TeleopPeriodic ( void   )  [inline]

This function is called periodically at fixed intervals in teleop mode.


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

Generated by  doxygen 1.6.2