|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Need help w/ moving Camera Servo motors.
Quote:
When we open the joysticks and the drive in begin.vi and reference them, the joysticks act funny and so does drive. Which is why i was wondering if anyone could post or PM any screenshots or code that could help us out. |
|
#2
|
|||
|
|||
|
Re: Need help w/ moving Camera Servo motors.
Quote:
|
|
#3
|
|||
|
|||
|
Re: Need help w/ moving Camera Servo motors.
Quote:
Im guessing Arcade Drive is originally in Teleop.vi because we never put it there. Anyways, we fixed the problem. The error was that the power cable was not properly connected to the Digital Sidecar. |
|
#4
|
|||||
|
|||||
|
Re: Need help w/ moving Camera Servo motors.
I just read your post. We have been doing the same thing with a servo, but with two preset positions and a button to toggle between them.
Here's a picture of our code: I put this in a sub-vi, called from teleop.vi. Two controls in teleop.vi are used to set the two angles of the servo. When you get them where you want, either make the current value the default value, (right-click and select Data Operations) or replace them with a constant of the same value. The green, boolean wire comes from the joystick button where it breaks out from the unbundle block. The Flip-Flop.vi is used to latch the button. I found the VI here on CD a while back, posted by one of the NI people. I don't recall the name or exact post, but it's been quite useful, once I made a few modifications to simplify it for our use. |
|
#5
|
|||
|
|||
|
Re: Need help w/ moving Camera Servo motors.
Thanks, but we have already solved this problem by wiring axis 3 of joystick 3 to the Camera Set Position. It is much simpler code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP- Need Globe Motors ASAP | Brandon Holley | General Forum | 0 | 03-11-2009 10:37 |
| need help with motors | EagleMentor | Programming | 3 | 06-02-2009 17:37 |
| Need help with mini motors | R.C. | Motors | 11 | 03-07-2008 16:25 |
| help getting servo values from camera | ruddy | Programming | 12 | 30-11-2007 23:18 |
| Window Motors. Need help!!!! | Mohsin | Motors | 1 | 27-02-2004 13:05 |