Main Content


Close Parrot drone FPV camera preview window

Add-On Required: This feature requires the MATLAB Support Package for Parrot Drones add-on.



closePreview(cameraObj) closes the preview window of the Parrot® drone camera, specified as cameraObj. You can close the preview at any time using the closePreview function. If you do not explicitly close the preview, it closes when you clear the camera object.


collapse all

Connect to a Parrot Mambo FPV drone over a wireless network.

parrotObj = parrot('Mambo');

Connect to the FPV camera

cameraObj = camera(parrotObj,'FPV')
cameraObj = 
          camera with properties:

                    Name: "FPV"
              Resolution: "640x360"                    

Preview the image from the camera


The preview window opens and displays live video stream from your camera. The banner of the preview window shows the camera URL. The lower portion of the window shows the timestamp in seconds, resolution, and frame rate in frames per second.

Close the preview


Input Arguments

collapse all

Parrot drone camera connection object, specified as a camera object.

Version History

Introduced in R2019a

See Also

| |