Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 863 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 863 Bytes

#MAVLinkParser MAVLinkParser is an open-source library to decode MAVLink raw messages.

MAVLink Logo

Installation

To install the library, copy MAVLinkParser to libraries folder and select the library and dependencies (PRAWUtils and CRC_16_CCITT) from Sketch > Import Library in Arduino IDE.

Import libraries

Usage

To decode a message, create a MAVLinkParser instace and call function MAVLinkParser:parseChar.

	MAVLinkParser uavLink();
	
	char * msg = NULL;
	uint16_t len = 0;

	uavLink.parseChar('a', &msg, &len);
      
	if (msg != NULL) {
   		uint8_t message_id = utils_praw_uint8((uint8_t *)msg, 5);
       
    	free(msg);
   		msg = NULL;
   		len = 0;
	}