Go to Post Team spirit is not all about the tools/noise makers. The Tigertrons didn't have any sort of noise makers. Consider other aspects of the award by making signs, mascots, cheers, and how you interact with other teams. - team222badbrad [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 05:46
sp33chy sp33chy is offline
Registered User
FRC #3332
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Melbourne, FL
Posts: 29
sp33chy is an unknown quantity at this point
Servos not working

Yeah. As a last minute thing I am adding moving camera view. However the servo motor isn't working. Neither of the ones that I opened today work so I don't think it's hardware related. So I start off by making a Servo...

Servo beatrice = new Servo(4,10);
double beatricex; //double for angle

Digital module is in slot 4, with servo attached to PWM slot 10.

Then during teleop's loop, I have this:

if (rightjs.getRawButton(4)){
beatricex--;
}
if (rightjs.getRawButton(5)){
beatricex++;
}
beatrice.setAngle(beatricex);

Pressing the buttons does nothing. I have tried several variations, such as setting it with a constant in the code, using set instead of setAngle, and using an axis on the joystick. Nothing works. I'm thinking something stupid is being done by me and I'm just too blind and sleep-deprived to see it.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 05:55
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Servos not working

Is the 6 volt power jumper installed on output 10? Without it, the servo has no power...
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2010, 06:57
sp33chy sp33chy is offline
Registered User
FRC #3332
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Melbourne, FL
Posts: 29
sp33chy is an unknown quantity at this point
Re: Servos not working

Sorry for my noobiness, but I never dealt with getting 6v power out of the board and I'm the only person on my team working on this part. What exactly do I need to do/what is the jumper and how do I attach it?

I'm assuming it's the two pins next to the PWM so I will try that I guess.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2010, 13:37
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Servos not working

yep, grab some jumpers off of a dead jaguar, they fit perfectly
Reply With Quote
Reply


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
Servos not moving Marlfox Electrical 2 09-02-2009 18:24
Working with spikes and servos in labview EROCK Technical Discussion 2 07-01-2009 11:38
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11
CMUCam Servos not Responding on Robot krigby Programming 7 20-01-2006 23:19
Servos not getting right voltage sheyna Programming 2 17-01-2006 21:57


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

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