mavlink / MAVSDK-Java

MAVSDK client for Java.
76 stars 44 forks source link

When take photo, subscribeCaptureInfo do not update? #102

Closed xumeng367 closed 3 months ago

xumeng367 commented 2 years ago

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?

JonasVautherin commented 2 years ago

Can you show your code?

xumeng367 commented 2 years ago

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

julianoes commented 2 years ago

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

JonasVautherin commented 2 years ago

@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:

julianoes commented 2 years ago

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

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

JonasVautherin commented 3 months ago

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