pymavlink.examples.mavtcpsniff Namespace Reference


 args = parser.parse_args()
 l = msrc.recv_match();
int l_last_timestamp = 0
 l_timestamp = getattr(l, '_timestamp', None)
 parser = ArgumentParser(description=__doc__)
 r = mdst.recv_match();
int r_last_timestamp = 0
 r_timestamp = getattr(r, '_timestamp', None)

Detailed Description

connect as a client to two tcpip ports on localhost with mavlink packets.    pass them both directions, and show packets in human-readable format on-screen.

this is useful if
* you have two SITL instances you want to connect to each other and see the comms.
* you have any tcpip based mavlink happening, and want something better than tcpdump

* you can use netcat/nc to do interesting redorection things with each end if you want to.

Copyright Sept 2012 David "Buzz" Bussenschutt
Released under GNU GPL version 3 or later

Variable Documentation

pymavlink.examples.mavtcpsniff.args = parser.parse_args()

Definition at line 28 of file

pymavlink.examples.mavtcpsniff.l = msrc.recv_match();

Definition at line 61 of file

pymavlink.examples.mavtcpsniff.l_last_timestamp = 0

Definition at line 63 of file

pymavlink.examples.mavtcpsniff.l_timestamp = getattr(l, '_timestamp', None)

Definition at line 65 of file


Definition at line 56 of file

Initial value:
1 = mavutil.mavlink_connection('tcp:localhost:{}'.format(args.dstport), planner_format=False,
2  notimestamps=True,
3  robust_parsing=True)

Definition at line 34 of file

Initial value:
1 = mavutil.mavlink_connection('tcp:localhost:{}'.format(args.srcport), planner_format=False,
2  notimestamps=True,
3  robust_parsing=True)

Definition at line 30 of file

pymavlink.examples.mavtcpsniff.parser = ArgumentParser(description=__doc__)

Definition at line 24 of file

pymavlink.examples.mavtcpsniff.r = mdst.recv_match();

Definition at line 76 of file

pymavlink.examples.mavtcpsniff.r_last_timestamp = 0

Definition at line 78 of file

pymavlink.examples.mavtcpsniff.r_timestamp = getattr(r, '_timestamp', None)

Definition at line 80 of file


Definition at line 25 of file

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