Classes | |
class | pcap |
Functions | |
def | convert_file (mavlink_file, pcap_file) |
def | find_next_frame (data) |
def | parse_header (data) |
def | write_packet (number, data, flags, pkt_length) |
Variables | |
args = parser.parse_args() | |
mavlink_file = args.input_file | |
int | MAVLINK_MAGIC = 0xfe |
tuple | MAVLINK_MESSAGE_CRCS = (50, 124, 137, 0, 237, 217, 104, 119, 0, 0, 0, 89, 0, 0, 0, 0, 0, 0, 0, 0, 214, 159, 220, 168, 24, 23, 170, 144, 67, 115, 39, 246, 185, 104, 237, 244, 242, 212, 9, 254, 230, 28, 28, 132, 221, 232, 11, 153, 41, 39, 214, 223, 141, 33, 15, 3, 100, 24, 239, 238, 30, 240, 183, 130, 130, 0, 148, 21, 0, 243, 124, 0, 0, 0, 20, 0, 152, 143, 0, 0, 127, 106, 0, 0, 0, 0, 0, 0, 0, 231, 183, 63, 54, 0, 0, 0, 0, 0, 0, 0, 175, 102, 158, 208, 56, 93, 0, 0, 0, 0, 235, 93, 124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 241, 15, 134, 219, 208, 188, 84, 22, 19, 21, 134, 0, 78, 68, 189, 127, 111, 21, 21, 144, 1, 234, 73, 181, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 49, 170, 44, 83, 46, 0) |
parser = ArgumentParser() | |
pcap_file = pcap(args.output_file.name, args.output_file.mode, linktype=147) | |
type | |
bool | write_junk = True |
def pymavlink.examples.mav2pcap.convert_file | ( | mavlink_file, | |
pcap_file | |||
) |
Definition at line 143 of file mav2pcap.py.
def pymavlink.examples.mav2pcap.find_next_frame | ( | data | ) |
find a potential start of frame
Definition at line 116 of file mav2pcap.py.
def pymavlink.examples.mav2pcap.parse_header | ( | data | ) |
split up header information (using construct)
Definition at line 123 of file mav2pcap.py.
def pymavlink.examples.mav2pcap.write_packet | ( | number, | |
data, | |||
flags, | |||
pkt_length | |||
) |
Definition at line 138 of file mav2pcap.py.
pymavlink.examples.mav2pcap.args = parser.parse_args() |
Definition at line 222 of file mav2pcap.py.
pymavlink.examples.mav2pcap.mavlink_file = args.input_file |
Definition at line 225 of file mav2pcap.py.
int pymavlink.examples.mav2pcap.MAVLINK_MAGIC = 0xfe |
Definition at line 32 of file mav2pcap.py.
tuple pymavlink.examples.mav2pcap.MAVLINK_MESSAGE_CRCS = (50, 124, 137, 0, 237, 217, 104, 119, 0, 0, 0, 89, 0, 0, 0, 0, 0, 0, 0, 0, 214, 159, 220, 168, 24, 23, 170, 144, 67, 115, 39, 246, 185, 104, 237, 244, 242, 212, 9, 254, 230, 28, 28, 132, 221, 232, 11, 153, 41, 39, 214, 223, 141, 33, 15, 3, 100, 24, 239, 238, 30, 240, 183, 130, 130, 0, 148, 21, 0, 243, 124, 0, 0, 0, 20, 0, 152, 143, 0, 0, 127, 106, 0, 0, 0, 0, 0, 0, 0, 231, 183, 63, 54, 0, 0, 0, 0, 0, 0, 0, 175, 102, 158, 208, 56, 93, 0, 0, 0, 0, 235, 93, 124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 241, 15, 134, 219, 208, 188, 84, 22, 19, 21, 134, 0, 78, 68, 189, 127, 111, 21, 21, 144, 1, 234, 73, 181, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 49, 170, 44, 83, 46, 0) |
Definition at line 36 of file mav2pcap.py.
pymavlink.examples.mav2pcap.parser = ArgumentParser() |
Definition at line 219 of file mav2pcap.py.
pymavlink.examples.mav2pcap.pcap_file = pcap(args.output_file.name, args.output_file.mode, linktype=147) |
Definition at line 227 of file mav2pcap.py.
pymavlink.examples.mav2pcap.type |
Definition at line 220 of file mav2pcap.py.
bool pymavlink.examples.mav2pcap.write_junk = True |
Definition at line 33 of file mav2pcap.py.