Go to Post You can sometimes step outside the box if you have properly thought through the question. - Jim Zondag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2012, 11:30
DBortnick's Avatar
DBortnick DBortnick is offline
Registered User
AKA: Daniel
FRC #1850 (Mechanicats)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Chicago, IL
Posts: 42
DBortnick is on a distinguished road
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:i->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
__________________
Coach for Team 1850
ACE Technical Mechanicats - Chicago, IL

http://www.facebook.com/Team1850
  #2   Spotlight this post!  
Unread 20-02-2012, 11:36
DBortnick's Avatar
DBortnick DBortnick is offline
Registered User
AKA: Daniel
FRC #1850 (Mechanicats)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Chicago, IL
Posts: 42
DBortnick is on a distinguished road
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
__________________
Coach for Team 1850
ACE Technical Mechanicats - Chicago, IL

http://www.facebook.com/Team1850
  #3   Spotlight this post!  
Unread 20-02-2012, 11:41
Dusk Star's Avatar
Dusk Star Dusk Star is offline
team Chief Delphi junkie
AKA: Andrew
FRC #2611 (Jacktown Vectors)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Jackson, MI
Posts: 63
Dusk Star is an unknown quantity at this point
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)
  #4   Spotlight this post!  
Unread 20-02-2012, 11:46
DBortnick's Avatar
DBortnick DBortnick is offline
Registered User
AKA: Daniel
FRC #1850 (Mechanicats)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Chicago, IL
Posts: 42
DBortnick is on a distinguished road
Re: There is a problem with my code please help

Okay that all works
__________________
Coach for Team 1850
ACE Technical Mechanicats - Chicago, IL

http://www.facebook.com/Team1850
  #5   Spotlight this post!  
Unread 20-02-2012, 11:51
Dusk Star's Avatar
Dusk Star Dusk Star is offline
team Chief Delphi junkie
AKA: Andrew
FRC #2611 (Jacktown Vectors)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Jackson, MI
Posts: 63
Dusk Star is an unknown quantity at this point
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!
  #6   Spotlight this post!  
Unread 20-02-2012, 15:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: There is a problem with my code please help

Quote:
Originally Posted by DBortnick View Post
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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