opendroneid / opendroneid-core-c

Open Drone ID Core C Library
Apache License 2.0
170 stars 64 forks source link

issue detecting consecutive ODID messages #62

Closed sandeshworld closed 1 year ago

sandeshworld commented 1 year ago

Hello, I am parsing bytes coming through UART and I am having issues with detecting consecutive ODID messages. My code does something like this:

mav2odid_t m2o;

As it receives new bytes over UART - msg_type = m2o_parseMavlink(&m2o, c);

I seem to have no issue detecting the initial ODID_MESSAGETYPE_BASIC_ID. However, it never detects the ODID_MESSAGETYPE_LOCATION that is received immediately afterwards on the UART port. Do I have to reset anything after detecting the ODID_MESSAGETYPE_BASIC_ID? Any advice on why I am not detecting ODID_MESSAGETYPE_LOCATION?

sandeshworld commented 1 year ago

Resolved the issue. It was not related to the implementation in this library. Issue was with my uart buffer.