PX4 Firmware
PX4 Autopilot Software http://px4.io
tfmini_parser.cpp File Reference
#include "tfmini_parser.h"
#include <string.h>
#include <stdlib.h>
Include dependency graph for tfmini_parser.cpp:

Go to the source code of this file.

Functions

int tfmini_parse (char c, char *parserbuf, unsigned *parserbuf_index, TFMINI_PARSE_STATE *state, float *dist)
 

Function Documentation

◆ tfmini_parse()

int tfmini_parse ( char  c,
char *  parserbuf,
unsigned *  parserbuf_index,
TFMINI_PARSE_STATE state,
float *  dist 
)

Definition at line 66 of file tfmini_parser.cpp.

References parser_state, STATE0_UNSYNC, STATE1_SYNC_1, STATE1_SYNC_2, STATE2_GOT_DIST_H, STATE2_GOT_DIST_L, STATE3_GOT_STRENGTH_H, STATE3_GOT_STRENGTH_L, STATE4_GOT_RESERVED, STATE5_GOT_QUALITY, STATE6_GOT_CHECKSUM, t1, and t2.

Referenced by TFMINI::collect().

Here is the caller graph for this function: