mirror of
https://github.com/team2059/Zaphod
synced 2024-12-18 20:12:28 -05:00
46 lines
760 B
C++
46 lines
760 B
C++
#include "ZaphodBase.h"
|
|
|
|
ZaphodBase::ZaphodBase():
|
|
zBot(new ZaphodRobot())
|
|
{
|
|
printf("Done.\n");
|
|
}
|
|
void ZaphodBase::RobotInit()
|
|
{
|
|
//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");
|
|
}
|
|
}
|
|
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);
|