GLOBAL_POSITION_INT 33
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 fly():
master.mav.global_position_int_send(
int(1e3 * (time.time() - boot_time)), # ms since boot
lat=388647525, lon=1214500745, alt=7000
)
作者:bai 创建时间:2024-09-14 16:08
最后编辑:bai 更新时间:2024-11-20 18:11
最后编辑:bai 更新时间:2024-11-20 18:11