resibots / libdynamixel

C++ interface to the dynamixel actuators
GNU General Public License v2.0
9 stars 15 forks source link

Sliding window header detection #26

Closed dogoepp closed 6 years ago

dogoepp commented 7 years ago

For now, if a valid message is prefixed with a partial header, it is not read. For instance, if 0xFF is received three times in a row for protocol 1 or four times for protocol 2.

If this happens regularly, we should consider to read the incoming data as with a sliding window. In this case, the oldest byte would be removed and the data analysed again.

dogoepp commented 6 years ago

Solved by #27