obs1dium/FocusBracket

Focusing isn't detected on RX100 MK4 after startOneShotFocusDrive

Opened this issue · 9 comments

FocusDriveListener is only triggered when changing focus by moving ring but isn't fired when startOneShotFocusDrive is used it might be because RX100IV has integrated lenses and ring isn't mechanically bound with lenses. As a result, it gets stuck on "Focusing...".

It seems that Bracket Pro uses:
shiftFocusPosition

private void handleShutterCallbackFocus(int var1) {
        ++this.mShutterCount;
        int var2 = BackUpUtil.getInstance().getPreferenceInt(BracketMasterBackUpKey.TAG_CURRENT_FOCUS_RANGE, 2);
        BMEEState.isBMCautionStateBooted = true;
        if(var2 == 2) {
            this.mPictureRangeSteps = 4;
        } else if(var2 == 1) {
            this.mPictureRangeSteps = 2;
        } else if(var2 == 0) {
            this.mPictureRangeSteps = 1;
        }

        var2 = this.mPictureRangeSteps;
        int var3 = this.mPictureRangeSteps;
        switch(this.mShutterCount) {
        case 1:
            this.mCameraEx.shiftFocusPosition(this.mPictureRangeSteps);
            this.mCameraEx.cancelTakePicture();
            this.mCameraEx.burstableTakePicture();
            return;
        case 2:
            this.mCameraEx.shiftFocusPosition(-(var2 + var3));
            this.mCameraEx.cancelTakePicture();
            this.mCameraEx.burstableTakePicture();
            return;
        case 3:
            this.lockWhiteBalanceSetting(false);
            this.lockExposureSetting(false);
            this.enableNextCapture(var1);
            this.mShutterCount = 0;
            return;
        default:
        }
    }```

I can't get shiftFocusPosition to do anything except freeze the app.

Same Issue with RX10 III it seems. Stuck at focusing (although the focu changes onces ans then doesn't change anymore)

However it's certainly possible because Sony's very lame Bracket Pro, can drive the focus to 3 different values

Where does that code fragment of Bracket Pro come from? Is the complete source code available, by any chance?

You can purchase the Sony app and then run it through a decompiler of your choice.

same here ... RX100 MK4 hangs after "focusing"

I just installed the app and have the same issue. were you able to make it work on RX100M4?

I also have a RX10M3 and for me it behaves like that: It lets me choose near and far focus, then it does the countdown and afterwards moves the focus as close to the camera as possible (I think, it's very blurry).
I found that when I rotate the focus ring I can adjust the focus but only for a short time, the camera "works against" my attempts at focusing. However, if I move the ring fast enough I can get the app to take pictures. Not good for taking an actual focus stack but perhaps that info is useful for debugging?

Here's my log file, please let me know if I can do any tests to help debug this.

LOG.TXT

Thank you for writing this program, it works nicely on my A7R2 with a Zeiss 55/1.8 lens.

RX100M5 - Freezes on Focussing and then times camera Turns off.