MAV_CMD_SET_CAMERA_ZOOM 531
python测试脚本
import time
from pymavlink import mavutil
timestamp = int(time.time() * 1000)
millis = int(time.time() * 1000)
master = mavutil.mavlink_connection('udpin:0.0.0.0:14550')
master.wait_heartbeat()
boot_time = time.time()
def zoom(type):
master.mav.command_long_send(
master.target_system,
master.target_component,
mavutil.mavlink.MAV_CMD_SET_CAMERA_ZOOM,
type,
3, 0, 0, 0, 0, 0, 0
)
zoom(1)
time.sleep(5)
zoom(0)
作者:bai 创建时间:2024-09-14 15:47
最后编辑:bai 更新时间:2024-11-20 18:12
最后编辑:bai 更新时间:2024-11-20 18:12