2014-05-24 14:29:44 -04:00
|
|
|
#include "ZaphodBase.h"
|
|
|
|
|
|
|
|
ZaphodBase::ZaphodBase():
|
|
|
|
zBot(new ZaphodRobot())
|
|
|
|
{
|
|
|
|
printf("Done.\n");
|
|
|
|
}
|
|
|
|
void ZaphodBase::RobotInit()
|
|
|
|
{
|
2014-05-31 10:29:45 -04:00
|
|
|
//Checks the state of the drive joystick to make sure it was not moved
|
|
|
|
//while plugged in, giving inaccurate readings
|
|
|
|
if(!zBot->checkJoystickValues())
|
|
|
|
{
|
|
|
|
printf("***UNPLUG AND REPLUG THE JOYSTICKS***\n");
|
|
|
|
}
|
2014-05-24 14:29:44 -04:00
|
|
|
}
|
|
|
|
void ZaphodBase::DisabledInit()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::AutonomousInit()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::TeleopInit()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::DisabledContinuous()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::AutonomousContinuous()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::TeleopContinuous()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::DisabledPeriodic()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::AutonomousPeriodic()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void ZaphodBase::TeleopPeriodic()
|
|
|
|
{
|
|
|
|
zBot->handler();
|
|
|
|
}
|
|
|
|
START_ROBOT_CLASS(ZaphodBase);
|