Go to Post I am a mechanical engineer. I have known since I was about 12 that I wanted to make complicated mechanisms. - Paul Copioli [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
  #1   Spotlight this post!  
Unread 30-01-2013, 17:19
Ubermesnch Ubermesnch is offline
Registered User
FRC #3329
 
Join Date: Jan 2013
Location: Georgia
Posts: 5
Ubermesnch is an unknown quantity at this point
Smile Want to control the Camera using the joystick?

Using labview and the logitech attack 3 joystick. i want to get the top buttons to move the camera, like the top button on the joystick to move the camera up. i know how to pull up the buttons, but not how to assign them anything or where to find camera motion any pointers?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2013, 17:29
BenGrapevine's Avatar
BenGrapevine BenGrapevine is offline
Head Programmer
AKA: Tony Simmering
FRC #2549 (Millerbots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Minneapolis, Minnesota
Posts: 46
BenGrapevine is an unknown quantity at this point
Re: Want to control the Camera using the joystick?

Quote:
Originally Posted by Ubermesnch View Post
Using labview and the logitech attack 3 joystick. i want to get the top buttons to move the camera, like the top button on the joystick to move the camera up. i know how to pull up the buttons, but not how to assign them anything or where to find camera motion any pointers?
Could you be more specific on what you mean by up? Do you want to move a bracket holding a static camera up? Or do you have a camera that moves on it's own?
__________________
Millerbots Team 2549
orange and blue
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2013, 20:48
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Want to control the Camera using the joystick?

What hardware do you have (Gimbol, etc.)?
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2013, 16:16
Ubermesnch Ubermesnch is offline
Registered User
FRC #3329
 
Join Date: Jan 2013
Location: Georgia
Posts: 5
Ubermesnch is an unknown quantity at this point
Re: Want to control the Camera using the joystick?

were using an Axis 206 Network camera it has motors that allows it to move
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2013, 16:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Want to control the Camera using the joystick?

Quote:
Originally Posted by Ubermesnch View Post
were using an Axis 206 Network camera it has motors that allows it to move
Unless those "motors" are actually servos that fall under the permitted specifications according to the rules, they won't be legal on a competition robot.

I'm pretty sure the Axis 206 doesn't include any motors, though. Where did you get one that does, and what documentation do you have on how to control it?
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2013, 16:53
Ubermesnch Ubermesnch is offline
Registered User
FRC #3329
 
Join Date: Jan 2013
Location: Georgia
Posts: 5
Ubermesnch is an unknown quantity at this point
Re: Want to control the Camera using the joystick?

i asked a kid on my team. apparently the camera is mounted on a frame with two actuators one for vertical and one for horizontal
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2013, 22:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Want to control the Camera using the joystick?

Please be more specific about these "actuators". Their precise nature will determine how to connect them to the control system and how to program the cRIO to control them.

A picture would help a lot.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2013, 18:15
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Want to control the Camera using the joystick?

OK, assuming that you are using a two servo control, here is a VI that you can put into your teleop and wire up to control it. Let me know if there are any bugs.
Attached Files
File Type: vi ServoGimbol.vi (19.3 KB, 12 views)
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2013, 21:45
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Want to control the Camera using the joystick?

Quote:
Originally Posted by blackflame2996 View Post
OK, assuming that you are using a two servo control, here is a VI that you can put into your teleop and wire up to control it. Let me know if there are any bugs.
I wouldn't call it a "bug", but it looks like you've gone to a lot of trouble to duplicate the built-in LabVIEW In Range and Coerce function.

If you want anyone to use that VI, you're probably going to need to explain what its inputs are and what it does with them.
Reply With Quote
  #10   Spotlight this post!  
Unread 04-02-2013, 16:32
Ubermesnch Ubermesnch is offline
Registered User
FRC #3329
 
Join Date: Jan 2013
Location: Georgia
Posts: 5
Ubermesnch is an unknown quantity at this point
Re: Want to control the Camera using the joystick?

so what do i need to do with the VI file inside labview?
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2013, 17:10
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Want to control the Camera using the joystick?

Initialize the 2 servos in begin.vi.

Drop the servo control vi into your teleop program and hook up the inputs. To do this, click and drag the icon in the upper right corner of the window into teleop. Then input the 2 refnums for the servos, x and y axes, steps and limit cluster. See the attached image.
Attached Thumbnails
Click image for larger version

Name:	Teleop Example.png
Views:	23
Size:	22.8 KB
ID:	13783  
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award

Last edited by blackflame2996 : 04-02-2013 at 17:21. Reason: Better Image
Reply With Quote
  #12   Spotlight this post!  
Unread 06-02-2013, 17:04
Ubermesnch Ubermesnch is offline
Registered User
FRC #3329
 
Join Date: Jan 2013
Location: Georgia
Posts: 5
Ubermesnch is an unknown quantity at this point
Re: Want to control the Camera using the joystick?

whered you pull up Digital Module 1?
Reply With Quote
  #13   Spotlight this post!  
Unread 06-02-2013, 22:52
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Want to control the Camera using the joystick?

If you right click the corresponding terminal and click "create constant"
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's 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


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

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