Home        Store        Learn        Blog

Control camera zoom by pymavlink

I am trying to control zoom by pymavlink
But it was failed, There is my code

    connection_string = dict_request_data['ip']
    mav = mavutil.mavlink_connection('tcp:' + connection_string)
    mav.wait_heartbeat()

    mav.mav.command_long_send(
        mav.target_system,
        mav.target_component,
        mavutil.mavlink.MAV_CMD_DO_DIGICAM_CONTROL,
        0,
        1, 3, 3, 0, 1, 0, 0)

Above code didn’t throw any excetipon, but it didn’t work too.

What’s wrong with my code?
And how i can solve this problem?

Hi,

The BlueROV camera does not have zoom, so this command will not work.

Ok, i see

Thank you for your attention :slight_smile: