Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Please help!!!! Only one wheel works and I/O error (http://www.chiefdelphi.com/forums/showthread.php?t=103387)

DBortnick 20-02-2012 12:07

Please help!!!! Only one wheel works and I/O error
 
#include "WPILib.h"
#include "Commands/Command.h"
#include "CommandBase.h"
#include "Logger.h"

class CommandBasedRobot : public IterativeRobot {
private:
// Command *autonomousCommand;

Logger *logger;

virtual void RobotInit() {
Logger::GetInstance();
CommandBase::init();
// autonomousCommand = new DriveWithJoystick();
}

virtual void AutonomousInit() {
// autonomousCommand->Start();
}

virtual void AutonomousPeriodic() {
// Scheduler::GetInstance()->Run();
}

virtual void TeleopInit() {
// This makes sure that the autonomous stops running when
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
// this line or comment it out.
// autonomousCommand->Cancel();
}

virtual void TeleopPeriodic() {
logger->Log(Logger::kINFO, "In TeleopPeriodic()");
Scheduler::GetInstance()->Run();

logger->Log(Logger::kINFO, "Starting Sweeper");
CommandBase::sweeper->run();

logger->Log(Logger::kINFO, "Starting Conveyor");
CommandBase::conveyor->run();

CommandBase::drive->driveWithJoystick(CommandBase::oi->getLeftJoystick());
}
};

START_ROBOT_CLASS(CommandBasedRobot);


All times are GMT -5. The time now is 17:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi