Camera Hacker

:

Add Comment | Related Links | TrackBack
Related Content

Nikon SDK - Get arbitrary position of lens

Hey all =) Seems like a handy place for my question, so here goes. Bear with me!

I am using the Nikon SDK to talk to a D700 with a 60mm macro lens, using windows and visual c++. So far all is well. I can get and set most values, and do everything I need to do (look at me go). One thing I can't seem to figure out is how to get and set an arbitrary focal position. I know how to manually focus the camera using the MFDrive stuff, but this is a relative position. As an example, let's say that I have the lens focused all the way 'out' (to infintiy, and beyond!). We could call that position 0. I then focus all the 'in' (close as possible), and we could call that position 32767 (signed short, just as an example).

As another example, imagine that I have trigger Auto Focus, and the camera focuses itself appropriately. For the sake of argument, we'll say it gets it spot on where I want it, and had no issues like focus hunting. I want to know the value of that specific position, so that if I were to send commands to the stepper motor to +/- the zoom level beyond that, there would be a way for me to return to that magical initial value.

Hopefully that all makes sense and there's a fellow geek out there who can help =)

TIA

daemorhedron
Thu, 07 Oct 2010 23:32:40 +0000

How did you implement the SDK into your code?

Laurent
Fri, 14 Jan 2011 10:25:21 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 6 + 1?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.