Taking a Photo with Anafi-Olympe

Hey there,

I want to get a photo with Anafi’s Olympe. I am running it on the real device, using the take_photo function in here:

with olympe.Drone("192.168.42.1") as drone:
    drone.connection()
    
    drone(TakeOff()).wait()
    
    try:
        
        drone(take_photo(cam_id=0)).wait()
        
    except Exception as e:
        # Catches any possible streaming error and ensure the drone lands afterwards
        print(traceback.format_exc(), file=sys.stderr)
        print("\n")
        
    sleep(4)
    
    drone(Landing()).wait()
    
    drone.disconnection()

But it doesn’t take any photo, or at least I cannot find it neither in the built-in SD nor in my PC. How should I take a photo?

Thanks in advance!

espetro

Hello,

By default, the drone camera is in video recording mode and does not respond to the take_photo command.
You should first set the drone camera mode to photo, eventually change the photo_mode and then send the take_photo command.

Additionally please note that when ANAFI is connected to a PC through USB, its SD card is mounted as a mass storage device on this PC. While the SD card is mounted as a mass storage device on the PC, it is unavailable for the drone to capture photos and videos.

Regards

Nicolas

Hi @espetro

Have you been able to take some photos with Olympe?

Please take a look at this other topic Sending Photos to Olympe which explain how to download and/or delete medias from the ANAFI SD card over wifi.