Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Table of Contents

  1. Introduction

  2. Features & Functionalities

  3. Classes & Methods

  4. Usage Example

  5. Testing

  6. Future Improvements

  7. References

1. Introduction <a name="introduction"></a>

This project establishes the foundational architecture for the MAVLink communication system, enabling the seamless encoding and decoding of MAVLink messages from raw data inputs.

2. Features & Functionalities <a name="features"></a>

  • Encoding of Data: Convert raw data inputs into MAVLink formatted messages.

  • Buffer Storage: Store the MAVLink formatted messages into a buffer for transmission or further processing.

  • Decoding: Parse buffer to retrieve MAVLink messages (demonstration provided through a placeholder class).

3. Classes & Methods <a name="classes"></a>

MavlinkEncoder

  • Constructor: Initializes the MavlinkEncoder object.

  • findPackingFunction: Encodes the input data based on the data initialized flags and stores the messages into the output buffer.

MavlinkDecoder (Placeholder for demonstration)

A class to showcase the decoding of buffer into MAVLink messages.

IncomingData

A data structure containing information like latitude, longitude, altitude, roll, pitch, and yaw, along with their initialization flags.

4. Usage Example <a name="usage"></a>

  1. Initialize the IncomingData object with data values.

  2. Use findPackingFunction from MavlinkEncoder to encode data into a buffer.

  3. Demonstrate decoding using the placeholder MavlinkDecoder class.

5. Testing <a name="testing"></a>

Manual Testing

  1. Sample data initialized and encoding verified by observing the buffer output.

  2. Placeholder decoding demonstrated with the sample buffer to ensure data integrity.

Unit Testing

No unit tests are provided in the shared code. However, they would typically test each function's behavior in isolation.

6. Future Improvements <a name="future-improvements"></a>

  • Integration of a complete MAVLink decoding system.

  • Implement error-handling for buffer overflow scenarios.

  • Enhance the system for real-time MAVLink communication.

7. References <a name="references"></a>

  • No labels