nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
21 stars 39 forks source link

Add a `getMaxSize()` Method To Types #104

Closed LeStarch closed 2 years ago

LeStarch commented 2 years ago
Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

When looking towards packetized telemetry in F´, we need the ability to determine not just the real size of a type, but the maximum size of that type that is reserved for it in a telemetry packet.

This PR adds those methods, cleans up type importing in the TimeType, and adds UTs.

LeStarch commented 2 years ago

@thomas-bc @timcanham would y'all take a look?