Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Need help w/ moving Camera Servo motors. (http://www.chiefdelphi.com/forums/showthread.php?t=82273)

umangv620 18-02-2010 18:21

Re: Need help w/ moving Camera Servo motors.
 
Quote:

Originally Posted by ecnahc515 (Post 920311)
That probably means you opened up the same reference or something, more than once. It should work fine with the begin and finish VI's, while having your reference and settings in the teleop. If it isn't than you set something up wrong.

The problem was that Arcade Drive was running in Teleop.vi and Tank Drive was running in Robot Main.vi

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.

Doc Wu 19-02-2010 12:28

Re: Need help w/ moving Camera Servo motors.
 
1 Attachment(s)
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.

umangv620 19-02-2010 21:52

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.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi