MAVSDK-Java icon indicating copy to clipboard operation
MAVSDK-Java copied to clipboard

When take photo, subscribeCaptureInfo do not update?

Open xumeng367 opened this issue 2 years ago • 5 comments

When i take photo, and Listen for this method Disposable captureInfoDisposable = drone.getCamera().getCaptureInfo().subscribe( captureInfo -> { Log.d(TAG, "run: " + captureInfo); });

but i unable to receive notification of picture info update, is this a Bug?

xumeng367 avatar Jul 18 '22 06:07 xumeng367

Can you show your code?

JonasVautherin avatar Jul 18 '22 07:07 JonasVautherin

Yeah, take photo method: drone.getCamera().takePhoto().subscribe();

listener photo info when create: Disposable captureInfoDisposable = drone.getCamera().getCaptureInfo().subscribe( captureInfo -> { Log.d(TAG, "run: " + captureInfo);

when connect drone ,first take photo, It's ok ,getCaptureInfo is called ,but take photo again, no response, getCaptureInfo not called;disconnect the drone and reconnect , ,first take photo, It's ok again.but take photo again, no response, again

xumeng367 avatar Jul 18 '22 09:07 xumeng367

What are you testing against? Do you know if that implementation is actually sending the required message CAMERA_IMAGE_CAPTURED?

julianoes avatar Jul 18 '22 20:07 julianoes

@julianoes just thinking: say the drone does not send the camera status, and hence does not increment image_count. Won't MAVSDK ignore new CAMERA_IMAGE_CAPTURED updates? :thinking:

Next question would be: is it mandatory for a camera to send the camera status? :sweat_smile:

JonasVautherin avatar Jul 18 '22 20:07 JonasVautherin

is it mandatory for a camera to send the camera status?

Mandatory? Who knows, probably not. Does it work without it? Probably not :smile:

julianoes avatar Jul 21 '22 00:07 julianoes

This has been inactive for years, let's close it.

JonasVautherin avatar Aug 20 '24 14:08 JonasVautherin