COMMAND_CANCEL 80
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()
#command_cancel
def cancel():
master.mav.command_cancel_send(
int(1e3 * (time.time() - boot_time)), # ms since boot
command=33
)
cancel()
作者:bai 创建时间:2024-09-14 16:10
最后编辑:bai 更新时间:2024-11-20 18:12
最后编辑:bai 更新时间:2024-11-20 18:12