Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   There is a problem with my code please help (http://www.chiefdelphi.com/forums/showthread.php?t=103383)

DBortnick 20-02-2012 11:30

There is a problem with my code please help
 
#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);



The issue is that one wheel works which is the left wheel. I cant get the sweeper to work or the other wheels

DBortnick 20-02-2012 11:36

Re: There is a problem with my code please help
 
Im also getting a error the I/o unity not detected or not installed correctly

Dusk Star 20-02-2012 11:41

Re: There is a problem with my code please help
 
Check that your digital breakout board has power- there should be three green lights on it. Does your robot signaling light work? (or whatever it's called, the big orange light)

DBortnick 20-02-2012 11:46

Re: There is a problem with my code please help
 
Okay that all works

Dusk Star 20-02-2012 11:51

Re: There is a problem with my code please help
 
Well, I have no idea. good luck, and remember that code does not ship with the robot!

Alan Anderson 20-02-2012 15:23

Re: There is a problem with my code please help
 
Quote:

Originally Posted by DBortnick (Post 1130870)
The issue is that one wheel works which is the left wheel. I cant get the sweeper to work or the other wheels

You didn't post anywhere near enough code for us to help you figure out what's wrong.

The "I/O unit" message is just informing you that the Driver Station didn't detect a Cypress PsoC connected via USB. If you're not intending to use one, you don't need to worry about the message.


All times are GMT -5. The time now is 00:47.

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