Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Want to control the Camera using the joystick? (http://www.chiefdelphi.com/forums/showthread.php?t=112393)

Ubermesnch 30-01-2013 17:19

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?

BenGrapevine 30-01-2013 17:29

Re: Want to control the Camera using the joystick?
 
Quote:

Originally Posted by Ubermesnch (Post 1224747)
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?

blackflame2996 30-01-2013 20:48

Re: Want to control the Camera using the joystick?
 
What hardware do you have (Gimbol, etc.)?

Ubermesnch 31-01-2013 16:16

Re: Want to control the Camera using the joystick?
 
were using an Axis 206 Network camera it has motors that allows it to move

Alan Anderson 31-01-2013 16:37

Re: Want to control the Camera using the joystick?
 
Quote:

Originally Posted by Ubermesnch (Post 1225430)
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?

Ubermesnch 31-01-2013 16:53

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

Alan Anderson 31-01-2013 22:13

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.

blackflame2996 01-02-2013 18:15

Re: Want to control the Camera using the joystick?
 
1 Attachment(s)
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.

Alan Anderson 01-02-2013 21:45

Re: Want to control the Camera using the joystick?
 
Quote:

Originally Posted by blackflame2996 (Post 1226082)
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.

Ubermesnch 04-02-2013 16:32

Re: Want to control the Camera using the joystick?
 
so what do i need to do with the VI file inside labview?

blackflame2996 04-02-2013 17:10

Re: Want to control the Camera using the joystick?
 
1 Attachment(s)
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.

Ubermesnch 06-02-2013 17:04

Re: Want to control the Camera using the joystick?
 
whered you pull up Digital Module 1?

blackflame2996 06-02-2013 22:52

Re: Want to control the Camera using the joystick?
 
If you right click the corresponding terminal and click "create constant"


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

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