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