PX4 Firmware
PX4 Autopilot Software http://px4.io
sf0x_parser.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  SF0X_PARSE_STATE {
  SF0X_PARSE_STATE0_UNSYNC = 0, SF0X_PARSE_STATE1_SYNC, SF0X_PARSE_STATE2_GOT_DIGIT0, SF0X_PARSE_STATE3_GOT_DOT,
  SF0X_PARSE_STATE4_GOT_DIGIT1, SF0X_PARSE_STATE5_GOT_DIGIT2, SF0X_PARSE_STATE6_GOT_CARRIAGE_RETURN
}
 

Functions

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

Enumeration Type Documentation

◆ SF0X_PARSE_STATE

Enumerator
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 
SF0X_PARSE_STATE6_GOT_CARRIAGE_RETURN 

Definition at line 43 of file sf0x_parser.h.

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: