Classes | Functions | Variables
pymavlink.generator.mavgen_cpp11 Namespace Reference

Classes

class  mav_include
 

Functions

def copy_fixed_headers (directory, xml)
 
def enum_remove_prefix (prefix, s)
 
def fix_int8_t (v)
 
def generate (basename, xml_list)
 
def generate_gtestsuite_hpp (directory, xml)
 
def generate_main_hpp (directory, xml)
 
def generate_message_hpp (directory, m)
 
def generate_one (basename, xml)
 
def tmax (bit)
 

Variables

 EType = collections.namedtuple('EType', ('type', 'max'))
 
dictionary MACROSES
 
 t = mavtemplate.MAVTemplate()
 
dictionary TYPE_MAX
 

Detailed Description

parse a MAVLink protocol XML file and generate a C++ implementation

Based on C implementation and require C-library for framing.

Copyright Andrew Tridgell 2011
Copyright Vladimir Ermakov 2016
Released under GNU GPL version 3 or later

Function Documentation

def pymavlink.generator.mavgen_cpp11.copy_fixed_headers (   directory,
  xml 
)
copy the fixed protocol headers to the target directory

Definition at line 274 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.enum_remove_prefix (   prefix,
  s 
)
remove prefix from enum entry

Definition at line 296 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.fix_int8_t (   v)
convert unsigned char value to signed char

Definition at line 314 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.generate (   basename,
  xml_list 
)
generate serialization MAVLink C++ implemenation

Definition at line 449 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.generate_gtestsuite_hpp (   directory,
  xml 
)
generate gtestsuite.hpp per XML file

Definition at line 184 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.generate_main_hpp (   directory,
  xml 
)
generate main header per XML file

Definition at line 49 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.generate_message_hpp (   directory,
  m 
)
generate per-message header for a XML file

Definition at line 112 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.generate_one (   basename,
  xml 
)
generate headers for one XML file

Definition at line 319 of file mavgen_cpp11.py.

def pymavlink.generator.mavgen_cpp11.tmax (   bit)

Definition at line 20 of file mavgen_cpp11.py.

Variable Documentation

pymavlink.generator.mavgen_cpp11.EType = collections.namedtuple('EType', ('type', 'max'))

Definition at line 46 of file mavgen_cpp11.py.

dictionary pymavlink.generator.mavgen_cpp11.MACROSES
Initial value:
1 = {
2  'MIN': 'MIN_',
3  'MAX': 'MAX_',
4  'NO_DATA': 'NO_DATA_', # fix uAvionix enum bug
5 }

Definition at line 40 of file mavgen_cpp11.py.

pymavlink.generator.mavgen_cpp11.t = mavtemplate.MAVTemplate()

Definition at line 18 of file mavgen_cpp11.py.

dictionary pymavlink.generator.mavgen_cpp11.TYPE_MAX
Initial value:
1 = {
2  #'float' : float('+inf'),
3  #'double' : float('+inf'),
4  'char' : tmax(7),
5  'int8_t' : tmax(7),
6  'uint8_t' : tmax(8),
7  'uint8_t_mavlink_version' : tmax(8),
8  'int16_t' : tmax(15),
9  'uint16_t' : tmax(16),
10  'int32_t' : tmax(31),
11  'uint32_t' : tmax(32),
12  'int64_t' : tmax(63),
13  'uint64_t' : tmax(64),
14 }

Definition at line 24 of file mavgen_cpp11.py.



mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:08