mavlink manual_control_send

manual_control_send(self, target, x, y, z, r, buttons, force_mavlink1=False) method of pymavlink.dialects.v10.ardupilotmega.MAVLink instance
    This message provides an API for manually controlling the vehicle
    using standard joystick axes nomenclature, along with
    a joystick-like input device. Unused axes can be
    disabled an buttons are also transmit as boolean
    values of their
    
    target                    : The system to be controlled. (type:uint8_t)
    x                         : X-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to forward(1000)-backward(-1000) movement on a joystick and the pitch of a vehicle. (type:int16_t)
    y                         : Y-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to left(-1000)-right(1000) movement on a joystick and the roll of a vehicle. (type:int16_t)
    z                         : Z-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a separate slider movement with maximum being 1000 and minimum being -1000 on a joystick and the thrust of a vehicle. Positive values are positive thrust, negative values are negative thrust. (type:int16_t)
    r                         : R-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a twisting of the joystick, with counter-clockwise being 1000 and clockwise being -1000, and the yaw of a vehicle. (type:int16_t)
    buttons                   : A bitfield corresponding to the joystick buttons' current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1. (type:uint16_t)
(END)
# Import mavutil
from pymavlink import mavutil,mavwp
#import asyncio
# Create the connection
master = mavutil.mavlink_connection('/dev/ttyUSB1',baud=57600)
#master = mavutil.mavlink_connection('udpin:0.0.0.0:14559')
# Wait a heartbeat before sending commands
master.wait_heartbeat()

help(master.mav.manual_control_send)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值