Go to Post A little CD goes a loooong way. :) - JaneYoung [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 15-04-2010, 11:22
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Servos

Hey anyone!!!! I am trying to program the servos and I had a few questions: here is what I have so far:

In Begin.vi Servo Open.vi>>Setrefnum

in teleop.vi I created a vi called Servo

In Servo.vi I have Getrefnum(for the servo)>> adn Getrefnum (for the joystick)

I then wired an unbundle by name for button 3 to Joystick_Get.vi and created a case structure. In the case structure I use Servo_GetPosition>> and added it to a constant of .1 and then set it to Servo_SetPosition.vi

I created a check to make sure that the new position that I am calling for is not above one. I created a less than check and the x value is the out put from the adding of .1 and the GetPosition; and the y value is 1.

if The less than check is true I set the servo position
if it is false it does nothing

The PMW channel indicator on the dashboard (the blue vertical bar thingy) is full when I click button 3. Adn the indicator (GPIO state) is on.


I have two PMW wires linked together to the servo wire (yellow,red,black) is linked to the wires
  #2   Spotlight this post!  
Unread 15-04-2010, 12:50
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Servos

OK, let me ask a couple questions.

What are you expecting this to do?
What is it actually doing?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #3   Spotlight this post!  
Unread 16-04-2010, 09:59
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Re: Servos

Sorry for the short response I ran out of time.

Anyway I am trying to program the servo motors for the camera. I tried using a spliter - the thingiy that takes the two wires and puts it into one (not sure how to describe it).

Just to make sure the servo motors are working I just set it up on to the PMW port on the digital sidecar - hoping that it sould work byitself.

When I click button 3 I expect the servo motor to spin.
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
Servos??? *C++* Straberrie Programming 2 02-01-2009 14:15
servos Thadanator Motors 13 04-05-2005 16:57
servos savage Technical Discussion 5 09-04-2005 20:52
servos AlphaOmega870 General Forum 1 21-01-2004 17:37
Servos... Katie Reynolds Motors 8 14-01-2002 08:08


All times are GMT -5. The time now is 03: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