AVSLab / basilisk

Astrodynamics simulation framework
https://hanspeterschaub.info/basilisk
ISC License
147 stars 61 forks source link

Flush vizInterface outputStream buffer when saving to file #839

Closed jackfox25 closed 3 weeks ago

jackfox25 commented 3 weeks ago

Description

When saving vizMessages to a binary file through vizInterface, the outputStream buffer was not being emptied fully. This led to early file truncation. Explicitly flushing the buffer after each sim step resolves this issue.

Verification

Manual inspection of saved binaries, using protobuffer test scenario which will be pushed in a future branch.

Documentation

Updated release notes

Future work

None