A7: FocusDriveListener not doing anything
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(); } } });
You could try increasing the 'speed' values, also have a look at #9