Go to Post I think your robot is lacking in non-threatening, huggable design. - Kevin Sevcik [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 18-02-2010, 18:21
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Need help w/ moving Camera Servo motors.

Quote:
Originally Posted by ecnahc515 View Post
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.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #17   Spotlight this post!  
Unread 19-02-2010, 12:28
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 206
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
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.
Attached Files
File Type: vi 1507 Camera Position.vi (14.6 KB, 6 views)
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #18   Spotlight this post!  
Unread 19-02-2010, 21:52
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
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.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
Reply


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
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


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

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