Go to Post Look, it's only August. You got approximately 6 months to enjoy your life until season starts. Enjoy it while it lasts... - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 03-03-2010, 22:02
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Solenoid Breakout

Quote:
Originally Posted by mrmummert View Post
I declared it as

rightStick(1, 3, 11),
leftStick(2, 3, 11),
....


also is this stated properly for victors?

if ......
{victor1.Set(1.0);}
You are declaring the joysticks as having 3 axes and 11 buttons and on port 1 and 2 respectively. That looks fine. I checked the wpi library source code and it should work. There must be something else in your code that is interfering. My experience with robot programming is that you can stare at a segment of code and it looks perfectly fine but it is other part of the code that was the problem. For example:
Code:
if (rightStick.GetRawButton(4))
{
    Sol1->Set(true);
}
...
...
// A long way down the code if you have:
Sol1->Set(false); // This will negate what you were trying to do.
In the past, we had code to run the motors but the motors were not running. We even put some print statement in the code to make sure the code to turn the motor on was executed but the motors were still not running. It turns out some function call soon after was turning off the motors immediately. This is just to demonstrate when you have a problem that doesn't make sense, look wider.
__________________
Reply With Quote
 


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
Solenoid Breakout Voltage for Pneumatics Question Team1908 Pneumatics 10 27-03-2010 00:27
Analog Breakout l.li Electrical 5 12-02-2010 15:56
Troubleshooting solenoid breakout DuaneB Pneumatics 6 02-02-2010 10:40
Solenoid not firing off Solenoid Breakout spooncwru Pneumatics 2 30-01-2010 17:46
5 Amp Fuses for Analog Breakout & Solenoid Breakout finman Electrical 3 10-12-2008 11:59


All times are GMT -5. The time now is 13:46.

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