Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character
Created January 14, 2020 23:57
Show Gist options
  • Save auxiliary-character/6c88104a9a6c83fdbeae84ba5ae61a78 to your computer and use it in GitHub Desktop.
Save auxiliary-character/6c88104a9a6c83fdbeae84ba5ae61a78 to your computer and use it in GitHub Desktop.
float_regex = """([\+\-\ ]\d{3}\.\d{2})"""
int8_regex = """([0-9A-Fa-f]{2})"""
int16_regex = """([0-9A-Fa-f]{4})"""
termination_regex = int8_regex
yprc_packet_regex = re.compile("!y"+
float_regex+ #Yaw
float_regex+ #Pitch
float_regex+ #Roll
float_regex+ #Compass Heading
termination_regex)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment