JanWielgus / STM_FlightController

0 stars 0 forks source link

Major changes inside communication (using new library) #45

Closed JanWielgus closed 4 years ago

JanWielgus commented 4 years ago

Changing communication method. In old one there was one library called MainCommunication where were all data, data packets were manually created byte after byte, one missing thing and whole data packet could be corrupted. This was a one big mess.

In current, new version data packets are separate classes, very simple in structure. Only need to inherit from DataPacketBase class, provide packet ID inside the constructor and add references to all variables that this data packet will be transferring (when sending this is source of data, when receiving data will be stored there). New library also has other features like precise connection stability.

Linked issue: #44