Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::communication::ibus::DynamicParser Class Reference

#include <dynamic_i_bus_parser.hpp>

Inheritance diagram for fang::communication::ibus::DynamicParser:
Collaboration diagram for fang::communication::ibus::DynamicParser:

Public Member Functions

 DynamicParser (coolSerial::ByteQueue &byteBuffer, IChannelDataFoundListener &listener)
 
void update ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DynamicParser()

fang::communication::ibus::DynamicParser::DynamicParser ( coolSerial::ByteQueue &  byteBuffer,
IChannelDataFoundListener listener 
)

Member Function Documentation

◆ update()

void fang::communication::ibus::DynamicParser::update ( )
inline

The documentation for this class was generated from the following files: