Asked — Edited

Using A Joy Stick To Take Pictures With Snap Shot

Hello everyone, I have a question about the snap shot control. I want to be able to take a picture with a joy stick button push, but only then. It seems the snap shot control will take a picture every so many seconds that you set it to. I don’t want to fill up my hard drive with unwanted pictures. I got everything to work, except it takes pictures on intervals by its self as well. So, anybody know if the interval timer can be turned off in the snap shot control? confused


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

#1  

Easy... Delete the snapshot control and just map one of the buttons in the joystick control to take a snapshot...


ControlCommand("Camera", CameraSnapshot)

United Kingdom
#2  

Assign the snapshot ControlCommand to a button...

ControlCommand("Camera", CameraSnapshot)

This takes one picture.

#4  

Thanks for the quick reply, Yes I understand the edit scripts. I have the joy stick, camera and the snap shot controls running. I scripted the joy stick button 1 to ControlCommand a snap shot. That all work fine. All 3 have to be running in order to work. Just setting the joy stick button to take a snap shot without the snap shot control up wont work. The issue is the interval timer. I can’t turn it off and with everything running; it still takes a snap shot without using the joy stick every so many seconds. I can’t find any script edit on the snap shot control and nothing in the camera control for the snap shot function. Thanks for all the help. May be I just not seeing it.

User-inserted image

United Kingdom
#5  

Yeah it will work, that's why I was 2 minutes behind Richard, I was testing it.

Add a camera control Add the joystick control In one of the buttons assign the script command

ControlCommand("Camera", CameraSnapshot)

Pressing that joystick button will take a photo and store it in the specified location (specified location is in the camera settings, by default it is My Pictures/My Robot Pictures

Here's an example project

And the resulting snapshot from my test

User-inserted image

#6  

Rich, Thanks. I must have did something wrong. I didn’t doubt you all, but just after your first post I tried it and it didn’t work. Don’t know what I did wrong, but you all are correct and its works fine now. Thank you Rich, Richard and DJ for all the quick help. I don’t know what I would do without you all. Problem solved!:D

#7  

Geez Rich, you should pick up the place a little before taking a picture....:P