Public Member Functions | Public Attributes | Private Attributes | List of all members
pymavlink.mavutil.mavfile Class Reference
Inheritance diagram for pymavlink.mavutil.mavfile:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, fd, address, source_system=255, source_component=0, notimestamps=False, input=True, use_native=default_native)
 
def arducopter_arm (self)
 
def arducopter_disarm (self)
 
def auto_mavlink_version (self, buf)
 
def base_mode (self)
 
def base_mode (self, value)
 
def calibrate_level (self)
 
def calibrate_pressure (self)
 
def check_condition (self, condition)
 
def close (self, n=None)
 
def disable_signing (self)
 
def field (self, type, field, default=None)
 
def flightmode (self)
 
def flightmode (self, value)
 
def location (self, relative_alt=False)
 
def mav_type (self)
 
def mav_type (self, value)
 
def mavlink10 (self)
 
def mavlink20 (self)
 
def messages (self)
 
def mode_mapping (self)
 
def motors_armed (self)
 
def motors_armed_wait (self)
 
def motors_disarmed_wait (self)
 
def packet_loss (self)
 
def param (self, name, default=None)
 
def param_fetch_all (self)
 
def param_fetch_one (self, name)
 
def param_set_send (self, parm_name, parm_value, parm_type=None)
 
def params (self)
 
def post_message (self, msg)
 
def pre_message (self)
 
def probably_vehicle_heartbeat (self, msg)
 
def reboot_autopilot (self, hold_in_bootloader=False)
 
def recv (self, n=None)
 
def recv_match (self, condition=None, type=None, blocking=False, timeout=None)
 
def recv_msg (self)
 
def select (self, timeout)
 
def set_mode (self, mode, custom_mode=0, custom_sub_mode=0)
 
def set_mode_apm (self, mode, custom_mode=0, custom_sub_mode=0)
 
def set_mode_auto (self)
 
def set_mode_fbwa (self)
 
def set_mode_flag (self, flag, enable)
 
def set_mode_loiter (self)
 
def set_mode_manual (self)
 
def set_mode_px4 (self, mode, custom_mode, custom_sub_mode)
 
def set_mode_rtl (self)
 
def set_relay (self, relay_pin=0, state=True)
 
def set_rtscts (self, enable)
 
def set_servo (self, channel, pwm)
 
def setup_logfile (self, logfile, mode='w')
 
def setup_logfile_raw (self, logfile, mode='w')
 
def setup_signing (self, secret_key, sign_outgoing=True, allow_unsigned_callback=None, initial_timestamp=None, link_id=None)
 
def target_component (self)
 
def target_component (self, value)
 
def target_system (self)
 
def target_system (self, value)
 
def time_since (self, mtype)
 
def vehicle_type (self)
 
def vehicle_type (self, value)
 
def wait_gps_fix (self)
 
def wait_heartbeat (self, blocking=True, timeout=None)
 
def waypoint_clear_all_send (self)
 
def waypoint_count_send (self, seq)
 
def waypoint_current (self)
 
def waypoint_request_list_send (self)
 
def waypoint_request_send (self, seq)
 
def waypoint_set_current_send (self, seq)
 
def write (self, buf)
 

Public Attributes

 address
 
 base_mode
 
 fd
 
 first_byte
 
 flightmode
 
 idle_hooks
 
 last_seq
 
 logfile
 
 logfile_raw
 
 mav
 
 mav_count
 
 mav_loss
 
 mav_type
 
 message_hooks
 
 notimestamps
 
 param_fetch_start
 
 param_state
 
 param_sysid
 
 portdead
 
 robust_parsing
 
 source_component
 
 source_system
 
 start_time
 
 stop_on_EOF
 
 sysid
 
 sysid_state
 
 target_component
 
 target_system
 
 timestamp
 
 uptime
 
 WIRE_PROTOCOL_VERSION
 

Private Attributes

 _timestamp
 

Detailed Description

a generic mavlink port

Definition at line 133 of file mavutil.py.

Constructor & Destructor Documentation

def pymavlink.mavutil.mavfile.__init__ (   self,
  fd,
  address,
  source_system = 255,
  source_component = 0,
  notimestamps = False,
  input = True,
  use_native = default_native 
)

Definition at line 135 of file mavutil.py.

Member Function Documentation

def pymavlink.mavutil.mavfile.arducopter_arm (   self)
arm motors (arducopter only)

Definition at line 786 of file mavutil.py.

def pymavlink.mavutil.mavfile.arducopter_disarm (   self)
calibrate pressure

Definition at line 802 of file mavutil.py.

def pymavlink.mavutil.mavfile.auto_mavlink_version (   self,
  buf 
)
auto-switch mavlink protocol version

Definition at line 245 of file mavutil.py.

def pymavlink.mavutil.mavfile.base_mode (   self)

Definition at line 238 of file mavutil.py.

def pymavlink.mavutil.mavfile.base_mode (   self,
  value 
)

Definition at line 242 of file mavutil.py.

def pymavlink.mavutil.mavfile.calibrate_level (   self)
calibrate accels (1D version)

Definition at line 730 of file mavutil.py.

def pymavlink.mavutil.mavfile.calibrate_pressure (   self)
calibrate pressure

Definition at line 736 of file mavutil.py.

def pymavlink.mavutil.mavfile.check_condition (   self,
  condition 
)
check if a condition is true

Definition at line 469 of file mavutil.py.

def pymavlink.mavutil.mavfile.close (   self,
  n = None 
)
default close method

Definition at line 285 of file mavutil.py.

def pymavlink.mavutil.mavfile.disable_signing (   self)
disable MAVLink2 signing

Definition at line 871 of file mavutil.py.

def pymavlink.mavutil.mavfile.field (   self,
  type,
  field,
  default = None 
)
convenient function for returning an arbitrary MAVLink
   field with a default

Definition at line 837 of file mavutil.py.

def pymavlink.mavutil.mavfile.flightmode (   self)

Definition at line 214 of file mavutil.py.

def pymavlink.mavutil.mavfile.flightmode (   self,
  value 
)

Definition at line 218 of file mavutil.py.

def pymavlink.mavutil.mavfile.location (   self,
  relative_alt = False 
)
return current location

Definition at line 771 of file mavutil.py.

def pymavlink.mavutil.mavfile.mav_type (   self)

Definition at line 230 of file mavutil.py.

def pymavlink.mavutil.mavfile.mav_type (   self,
  value 
)

Definition at line 234 of file mavutil.py.

def pymavlink.mavutil.mavfile.mavlink10 (   self)
return True if using MAVLink 1.0 or later

Definition at line 473 of file mavutil.py.

def pymavlink.mavutil.mavfile.mavlink20 (   self)
return True if using MAVLink 2.0 or later

Definition at line 477 of file mavutil.py.

def pymavlink.mavutil.mavfile.messages (   self)

Definition at line 210 of file mavutil.py.

def pymavlink.mavutil.mavfile.mode_mapping (   self)
return dictionary mapping mode names to numbers, or None if unknown

Definition at line 600 of file mavutil.py.

def pymavlink.mavutil.mavfile.motors_armed (   self)
return true if motors armed

Definition at line 818 of file mavutil.py.

def pymavlink.mavutil.mavfile.motors_armed_wait (   self)
wait for motors to be armed

Definition at line 822 of file mavutil.py.

def pymavlink.mavutil.mavfile.motors_disarmed_wait (   self)
wait for motors to be disarmed

Definition at line 829 of file mavutil.py.

def pymavlink.mavutil.mavfile.packet_loss (   self)
packet loss as a percentage

Definition at line 403 of file mavutil.py.

def pymavlink.mavutil.mavfile.param (   self,
  name,
  default = None 
)
convenient function for returning an arbitrary MAVLink
   parameter with a default

Definition at line 844 of file mavutil.py.

def pymavlink.mavutil.mavfile.param_fetch_all (   self)
initiate fetch of all parameters

Definition at line 493 of file mavutil.py.

def pymavlink.mavutil.mavfile.param_fetch_one (   self,
  name 
)
initiate fetch of one parameter

Definition at line 501 of file mavutil.py.

def pymavlink.mavutil.mavfile.param_set_send (   self,
  parm_name,
  parm_value,
  parm_type = None 
)
wrapper for parameter set

Definition at line 517 of file mavutil.py.

def pymavlink.mavutil.mavfile.params (   self)

Definition at line 202 of file mavutil.py.

def pymavlink.mavutil.mavfile.post_message (   self,
  msg 
)
default post message call

Definition at line 323 of file mavutil.py.

def pymavlink.mavutil.mavfile.pre_message (   self)
default pre message call

Definition at line 305 of file mavutil.py.

def pymavlink.mavutil.mavfile.probably_vehicle_heartbeat (   self,
  msg 
)

Definition at line 313 of file mavutil.py.

def pymavlink.mavutil.mavfile.reboot_autopilot (   self,
  hold_in_bootloader = False 
)
reboot the autopilot

Definition at line 746 of file mavutil.py.

def pymavlink.mavutil.mavfile.recv (   self,
  n = None 
)
default recv method

Definition at line 281 of file mavutil.py.

def pymavlink.mavutil.mavfile.recv_match (   self,
  condition = None,
  type = None,
  blocking = False,
  timeout = None 
)
recv the next MAVLink message that matches the given condition
type can be a string or a list of strings

Definition at line 439 of file mavutil.py.

def pymavlink.mavutil.mavfile.recv_msg (   self)
message receive routine

Definition at line 410 of file mavutil.py.

def pymavlink.mavutil.mavfile.select (   self,
  timeout 
)
wait for up to timeout seconds for more data

Definition at line 294 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode (   self,
  mode,
  custom_mode = 0,
  custom_sub_mode = 0 
)
set arbitrary flight mode

Definition at line 657 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_apm (   self,
  mode,
  custom_mode = 0,
  custom_sub_mode = 0 
)
enter arbitrary mode

Definition at line 632 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_auto (   self)
enter auto mode

Definition at line 591 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_fbwa (   self)
enter FBWA mode

Definition at line 685 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_flag (   self,
  flag,
  enable 
)
Enables/ disables MAV_MODE_FLAG
@param flag The mode flag, 
  see MAV_MODE_FLAG enum
@param enable Enable the flag, (True/False)

Definition at line 571 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_loiter (   self)
enter LOITER mode

Definition at line 695 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_manual (   self)
enter MANUAL mode

Definition at line 674 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_px4 (   self,
  mode,
  custom_mode,
  custom_sub_mode 
)
enter arbitrary mode

Definition at line 645 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_mode_rtl (   self)
enter RTL mode

Definition at line 665 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_relay (   self,
  relay_pin = 0,
  state = True 
)
Set relay_pin to value of state

Definition at line 712 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_rtscts (   self,
  enable 
)
enable/disable RTS/CTS if applicable

Definition at line 309 of file mavutil.py.

def pymavlink.mavutil.mavfile.set_servo (   self,
  channel,
  pwm 
)
set a servo value

Definition at line 704 of file mavutil.py.

def pymavlink.mavutil.mavfile.setup_logfile (   self,
  logfile,
  mode = 'w' 
)
start logging to the given logfile, with timestamps

Definition at line 481 of file mavutil.py.

def pymavlink.mavutil.mavfile.setup_logfile_raw (   self,
  logfile,
  mode = 'w' 
)
start logging raw bytes to the given logfile, without timestamps

Definition at line 485 of file mavutil.py.

def pymavlink.mavutil.mavfile.setup_signing (   self,
  secret_key,
  sign_outgoing = True,
  allow_unsigned_callback = None,
  initial_timestamp = None,
  link_id = None 
)
setup for MAVLink2 signing

Definition at line 851 of file mavutil.py.

def pymavlink.mavutil.mavfile.target_component (   self)

Definition at line 181 of file mavutil.py.

def pymavlink.mavutil.mavfile.target_component (   self,
  value 
)

Definition at line 195 of file mavutil.py.

def pymavlink.mavutil.mavfile.target_system (   self)

Definition at line 177 of file mavutil.py.

def pymavlink.mavutil.mavfile.target_system (   self,
  value 
)

Definition at line 185 of file mavutil.py.

def pymavlink.mavutil.mavfile.time_since (   self,
  mtype 
)
return the time since the last message of type mtype was received

Definition at line 511 of file mavutil.py.

def pymavlink.mavutil.mavfile.vehicle_type (   self)

Definition at line 222 of file mavutil.py.

def pymavlink.mavutil.mavfile.vehicle_type (   self,
  value 
)

Definition at line 226 of file mavutil.py.

def pymavlink.mavutil.mavfile.wait_gps_fix (   self)

Definition at line 762 of file mavutil.py.

def pymavlink.mavutil.mavfile.wait_heartbeat (   self,
  blocking = True,
  timeout = None 
)
wait for a heartbeat so we know the target system IDs

Definition at line 489 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_clear_all_send (   self)
wrapper for waypoint_clear_all_send

Definition at line 535 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_count_send (   self,
  seq 
)
wrapper for waypoint_count_send

Definition at line 564 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_current (   self)
return current waypoint

Definition at line 556 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_request_list_send (   self)
wrapper for waypoint_request_list_send

Definition at line 528 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_request_send (   self,
  seq 
)
wrapper for waypoint_request_send

Definition at line 542 of file mavutil.py.

def pymavlink.mavutil.mavfile.waypoint_set_current_send (   self,
  seq 
)
wrapper for waypoint_set_current_send

Definition at line 549 of file mavutil.py.

def pymavlink.mavutil.mavfile.write (   self,
  buf 
)
default write method

Definition at line 289 of file mavutil.py.

Member Data Documentation

pymavlink.mavutil.mavfile._timestamp
private

Definition at line 171 of file mavutil.py.

pymavlink.mavutil.mavfile.address

Definition at line 142 of file mavutil.py.

pymavlink.mavutil.mavfile.base_mode

Definition at line 376 of file mavutil.py.

pymavlink.mavutil.mavfile.fd

Definition at line 139 of file mavutil.py.

pymavlink.mavutil.mavfile.first_byte

Definition at line 160 of file mavutil.py.

pymavlink.mavutil.mavfile.flightmode

Definition at line 374 of file mavutil.py.

pymavlink.mavutil.mavfile.idle_hooks

Definition at line 168 of file mavutil.py.

pymavlink.mavutil.mavfile.last_seq

Definition at line 144 of file mavutil.py.

pymavlink.mavutil.mavfile.logfile

Definition at line 164 of file mavutil.py.

pymavlink.mavutil.mavfile.logfile_raw

Definition at line 165 of file mavutil.py.

pymavlink.mavutil.mavfile.mav

Definition at line 162 of file mavutil.py.

pymavlink.mavutil.mavfile.mav_count

Definition at line 146 of file mavutil.py.

pymavlink.mavutil.mavfile.mav_loss

Definition at line 145 of file mavutil.py.

pymavlink.mavutil.mavfile.mav_type

Definition at line 375 of file mavutil.py.

pymavlink.mavutil.mavfile.message_hooks

Definition at line 167 of file mavutil.py.

pymavlink.mavutil.mavfile.notimestamps

Definition at line 170 of file mavutil.py.

pymavlink.mavutil.mavfile.param_fetch_start

Definition at line 147 of file mavutil.py.

pymavlink.mavutil.mavfile.param_state

Definition at line 154 of file mavutil.py.

pymavlink.mavutil.mavfile.param_sysid

Definition at line 141 of file mavutil.py.

pymavlink.mavutil.mavfile.portdead

Definition at line 174 of file mavutil.py.

pymavlink.mavutil.mavfile.robust_parsing

Definition at line 161 of file mavutil.py.

pymavlink.mavutil.mavfile.source_component

Definition at line 159 of file mavutil.py.

pymavlink.mavutil.mavfile.source_system

Definition at line 158 of file mavutil.py.

pymavlink.mavutil.mavfile.start_time

Definition at line 166 of file mavutil.py.

pymavlink.mavutil.mavfile.stop_on_EOF

Definition at line 173 of file mavutil.py.

pymavlink.mavutil.mavfile.sysid

Definition at line 140 of file mavutil.py.

pymavlink.mavutil.mavfile.sysid_state

Definition at line 150 of file mavutil.py.

pymavlink.mavutil.mavfile.target_component

Definition at line 398 of file mavutil.py.

pymavlink.mavutil.mavfile.target_system

Definition at line 397 of file mavutil.py.

pymavlink.mavutil.mavfile.timestamp

Definition at line 143 of file mavutil.py.

pymavlink.mavutil.mavfile.uptime

Definition at line 169 of file mavutil.py.

pymavlink.mavutil.mavfile.WIRE_PROTOCOL_VERSION

Definition at line 172 of file mavutil.py.


The documentation for this class was generated from the following file:


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02