Go to Post FIRST is one strange world.... - Wayne C. [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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:35.

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