Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A7: FocusDriveListener not doing anything #25

Open
hoshyK2 opened this issue May 23, 2018 · 1 comment
Open

A7: FocusDriveListener not doing anything #25

hoshyK2 opened this issue May 23, 2018 · 1 comment

Comments

@hoshyK2
Copy link

hoshyK2 commented May 23, 2018

Hi,

As best as I can tell the FocusDriverListener event is not raising on my A7 (original model). Latest firmware: 3.20

I built from source (and tried the shipped local installer build) v1.5. But no matter what I try, I always get a m_curFocus == 0

The logging messages are not hit either so it seems that this whole code block never fires. Other log messages are written fine so logging is generally working.

m_camera.setFocusDriveListener(new CameraEx.FocusDriveListener()
{
@OverRide
public void onChanged(CameraEx.FocusPosition focusPosition, CameraEx cameraEx)
{
Logger.info("FocusDriveListener: currentPosition " + focusPosition.currentPosition);
m_handler.removeCallbacks(m_checkFocusRunnable);
m_focusScaleView.setMaxPosition(focusPosition.maxPosition);
m_focusScaleView.setCurPosition(focusPosition.currentPosition);
m_tvMsg.setText(focusPosition.currentPosition);
m_curFocus = focusPosition.currentPosition;
if (m_waitingForFocus)
{
if (m_curFocus == m_focusQueue.getFirst())
{
// Focused, take picture
Logger.info("Taking picture (FocusDriveListener)");
takePicture();
}
else
focus();
}
}
});

@obs1dium
Copy link
Owner

obs1dium commented May 24, 2018

You could try increasing the 'speed' values, also have a look at #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants