|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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... |
|
#2
|
||||
|
||||
|
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);
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |