obs1dium / FocusBracket

Proof-of-concept app for focus bracketing on Sony Alpha cameras.
MIT License
74 stars 23 forks source link

A7: FocusDriveListener not doing anything #25

Open hoshyK2 opened 6 years ago

hoshyK2 commented 6 years ago

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 commented 6 years ago

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