Go to Post By the way, I will be running for office in 2008 .... - Paul Copioli [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 29-01-2010, 12:26
Tds123's Avatar
Tds123 Tds123 is offline
There is no I in team =]
AKA: Timothy Shub
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Tottenville High School
Posts: 27
Tds123 is an unknown quantity at this point
Send a message via AIM to Tds123
Programming help go foward but not reverse

Here is my robots code...

http://paste.pocoo.org/show/171676/

The spike that run " winch"
and the spike runs "roller" the button that makes it go foward works but the buttons that make it go in reverse dont work...please help with this someone!!!

and the jaguar for arm... when both buttons are pressed the jaguar turns green one of them is supposed to be red for reverse...
__________________
ThE sCaLeS oF bAlAnCe (Team 1396)
  #2   Spotlight this post!  
Unread 29-01-2010, 16:56
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Programming help go foward but not reverse

you are turning it off
Code:
if (armjoy.GetRawButton(outtakeButton) == 1) {
			roller.SetDirection(Relay::kForwardOnly);
			roller.Set(Relay::kOn);
		} else if (armjoy.GetRawButton(intakeButton) == 1) {
			roller.SetDirection(Relay::kReverseOnly);
			roller.Set(Relay::kOn);//not kOff
		} else {
			roller.Set(Relay::kOff);
		}

	if (armjoy.GetTrigger() == 1) {
				winch.SetDirection(Relay::kForwardOnly);
				winch.Set(Relay::kOn);
		} else if (armjoy.GetRawButton(winchDownButton) == 1) {
				winch.SetDirection(Relay::kReverseOnly);
				winch.Set(Relay::kOn);//not kOff
		} else {
				winch.Set(Relay::kOff);
		}
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! Default programming does not work? WolvesRobotics C/C++ 4 08-02-2009 14:10
URGENT HELP: IR board TRAINS but does not RECIEVE dan_h Sensors 6 20-02-2008 20:31
reverse of motors NOT working please help Stillen Control System 4 11-02-2006 22:05
New to C but not to basic, need help on autonomous cdennisxlx2 Programming 4 02-02-2005 03:38
not robotics, but help would be appreciated pryoplasm Electrical 26 02-06-2004 07:14


All times are GMT -5. The time now is 21:22.

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