mavlink / MAVSDK-Java

MAVSDK client for Java.
68 stars 40 forks source link

When take photo, subscribeCaptureInfo do not update? #102

Open xumeng367 opened 1 year ago

xumeng367 commented 1 year 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 1 year ago

Can you show your code?

xumeng367 commented 1 year 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 1 year ago

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

JonasVautherin commented 1 year 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 1 year 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: