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)

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章