|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <dynamic_i_bus_parser.hpp>


Public Member Functions | |
| DynamicParser (coolSerial::ByteQueue &byteBuffer, IChannelDataFoundListener &listener) | |
| void | update () |
Adaptation of coolSerial dynamic parser for flysky
It searches for the 2 byte SOF, it will keep dumping the queue until it finds the SOF section
Upon finding the SOF, it extracts a segment of 30 bytes which include both the channel section (28 bytes) and the checksum (2 bytes)
If the channel data is valid, it informs a ChannelDataFoundListener with the channel data.
| fang::communication::ibus::DynamicParser::DynamicParser | ( | coolSerial::ByteQueue & | byteBuffer, |
| IChannelDataFoundListener & | listener | ||
| ) |
|
inline |