Log in

View Full Version : Want to control the Camera using the joystick?


Ubermesnch
30-01-2013, 17:19
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
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
What hardware do you have (Gimbol, etc.)?

Ubermesnch
31-01-2013, 16:16
were using an Axis 206 Network camera it has motors that allows it to move

Alan Anderson
31-01-2013, 16:37
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
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
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
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
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
so what do i need to do with the VI file inside labview?

blackflame2996
04-02-2013, 17:10
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
whered you pull up Digital Module 1?

blackflame2996
06-02-2013, 22:52
If you right click the corresponding terminal and click "create constant"