PX4 Firmware
PX4 Autopilot Software http://px4.io
|
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) |
enum SF0X_PARSE_STATE |
Definition at line 43 of file sf0x_parser.h.
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().