I am trying to add a code to bolt trigger module.
I figured out how to control the focus, and added some lines for full wide and full zoom of my 18-55mm kit lens.
I would just set lens to MF the turn focus to INF all the way, then I would switch on AF and run the code for whatever zoom I am at, Full or Wide. It always focuses right where I want it just fine.
But the question is, can anyone tell me how to make the code know if it is full wide or full zoom so it knows which code to run when I run the code?
An maybe anyone willing to help has a simplier solution then my basic code? LOL
Update: Sorry was in rush cause of a storm, here is the line of code I am using right now.
/* Full Zoom */
/* msleep(100);
lens_focus_start(80 * get_follow_focus_dir_h());
msleep(100);
lens_focus_start(1 * get_follow_focus_dir_h());
msleep(100); */
/* Full Wide */
msleep(100);
lens_focus_start(2 * get_follow_focus_dir_h());
msleep(100);
lens_focus_start(1 * get_follow_focus_dir_h());
msleep(100);
lens_focus_start(1 * get_follow_focus_dir_h());
msleep(100);
lens_focus_stop();
msleep(100);