Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logs conversion tool #56

Open
wiktorwieclaw opened this issue Apr 11, 2023 · 2 comments
Open

add logs conversion tool #56

wiktorwieclaw opened this issue Apr 11, 2023 · 2 comments
Assignees

Comments

@wiktorwieclaw
Copy link
Member

Once we implement

We will need a CLI tool that outputs the data in a human readable form, for example csv (csv is a great crate for that), but I'm open to propositions.

Let's place the crate in a new /tools/ directory. It should take a file as an input and print the logs converted to csv. I recommend using clap with derive macro for user input (see xtask for example usage).

@wiktorwieclaw
Copy link
Member Author

cansat_core can be added as a dependency so that we can reuse the Measurements struct definition. Just add a serde::Deserialize to it's derive attribute and use postcard to deserialize the data into Vec<Measurements>.

@wiktorwieclaw
Copy link
Member Author

cansat_core can be added as a dependency so that we can reuse the Measurements struct definition. Just add a serde::Deserialize to it's derive attribute

Ok this won't be that trivial because one would need to create custom deserialization functions for all the custom types we use. It will be much easier to just recreate the Measurements struct, but with simple types like f32 instead of Temperature.

@PatrykPaluch PatrykPaluch self-assigned this May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants