MAV'RIC
Classes | Public Member Functions | Static Public Member Functions | Public Attributes
Mavlink_stream Class Reference

Main structure for the MAVLink stream module. More...

#include <mavlink_stream.hpp>

List of all members.

Classes

struct  conf_t
 Configuration structure for the module MAVLink stream. More...
struct  msg_received_t
 Mavlink structures for the receive message and its status. More...

Public Member Functions

 Mavlink_stream (Serial &serial, const conf_t &config=default_config())
 Constructor.
bool send (mavlink_message_t *msg) const
 Send Mavlink stream.
bool receive (msg_received_t *rec)
 Mavlink parsing of message; the message is not available in this module afterwards.
void flush ()
 Flushing MAVLink stream.
uint32_t sysid () const
 Return sysid of this stream.
uint32_t compid () const
 Return sysid of this stream.

Static Public Member Functions

static conf_t default_config (void)
 Default config of MAVLink stream.

Public Attributes

uint32_t sysid_
 System ID.

Detailed Description

Main structure for the MAVLink stream module.


Member Function Documentation

uint32_t Mavlink_stream::compid ( ) const [inline]

Return sysid of this stream.

Returns:
sysid

Here is the caller graph for this function:

Mavlink parsing of message; the message is not available in this module afterwards.

Parameters:
recAddress where to store the received message
Returns:
Success True if a message was successfully decoded, false else

Here is the call graph for this function:

Here is the caller graph for this function:

bool Mavlink_stream::send ( mavlink_message_t *  msg) const

Send Mavlink stream.

Parameters:
msgmsg to stream
Returns:
success

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t Mavlink_stream::sysid ( ) const [inline]

Return sysid of this stream.

Returns:
sysid

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines