fprime icon indicating copy to clipboard operation
fprime copied to clipboard

Validate that Events can fit within a ComBuffer

Open Joshua-Anderson opened this issue 3 years ago • 0 comments

Feature Description

The autocoder should warn when defining events larger than can be serialized into an event buffer. Right now if a user defines an event larger than can into a log buffer, F' will assert at runtime during serialization.

Rationale

Similar to telemetry packetization, F' should prevent definition of impossible to serialize events. This is particularly dangerous for events using strings, since they could successfully serialize in some cases but assert if the strings were too long.

FPP could perform this check, but it will likely require moving the combuffer size definition (which typically drives the size of the logbuffer) from a definition in FpConfig.hpp to FPP so it is available at the autocoding step.

Joshua-Anderson avatar Aug 18 '22 17:08 Joshua-Anderson