BufferedMavConnection
class BufferedMavConnection(source: BufferedSource, sink: BufferedSink, resource: Closeable, dialect: MavDialect) : MavConnection
A MavConnection implementation that reads MavFrames form a BufferedSource and writes them to a BufferedSink. The dialect is used to deserialize the raw frame to a MavFrame. The resource is the origin of the source and the sink. For example, a TCP Socket or a serial port.
Functions
Link copied to clipboard
Reads a MAVLink frame from for the underlying connection.
Link copied to clipboard
Link copied to clipboard
open override fun <T : MavMessage<T>> sendUnsignedV2(systemId: UByte, componentId: UByte, payload: T)
Sends the provided payload wrapped in an unsigned MAVLink v2 frame.