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

Go to the source code of this file.

Functions

int sf0x_parser (char c, char *parserbuf, unsigned *parserbuf_index, enum SF0X_PARSE_STATE *state, float *dist)
 

Detailed Description

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch

Driver for the Lightware SF0x laser rangefinder series

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch

Declarations of parser for the Lightware SF0x laser rangefinder series

Definition in file sf0x_parser.cpp.

Function Documentation

◆ sf0x_parser()

int sf0x_parser ( char  c,
char *  parserbuf,
unsigned *  parserbuf_index,
enum SF0X_PARSE_STATE state,
float *  dist 
)

Definition at line 61 of file sf0x_parser.cpp.

References parser_state, SF0X_PARSE_STATE0_UNSYNC, SF0X_PARSE_STATE1_SYNC, SF0X_PARSE_STATE2_GOT_DIGIT0, SF0X_PARSE_STATE3_GOT_DOT, SF0X_PARSE_STATE4_GOT_DIGIT1, SF0X_PARSE_STATE5_GOT_DIGIT2, and SF0X_PARSE_STATE6_GOT_CARRIAGE_RETURN.

Referenced by SF0X::collect(), and SF0XTest::sf0xTest().

Here is the caller graph for this function: