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 Telemetry Hex Storage Format #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add Telemetry Hex Storage Format #56

wants to merge 5 commits into from

Conversation

cnalley
Copy link
Contributor

@cnalley cnalley commented Feb 19, 2017

This PR adds a hex format telemetry log entry. The log entry is fixed width hexadecimal and contains the entire contents of the telemetry packet struct. This format can be used with the telemetry plotter here https://github.com/cnalley/telemetry-plotter. Some additional placeholders were also added for future output formats. The existing csv format only saves the data member of the telemetry struct while the new hex format saves the entire telemetry packet. The two new placeholders would in the future provide a hex format to save just the data member of the telemetry packet struct and a csv format for the complete telemetry packet. These new formats would open up additional configuration options for klog to leave all telemetry logs in the same file (if it's a complete telemetry packet for later decoding) or just the data member if each telemetry source is saved to individual files with distinct file names.

@davesims
Copy link
Contributor

👋 Hey there @cnalley, nice to see you! Thanks for the PR, we'll have a look.

int len = 0;
const unsigned char *byte_array = (unsigned char*)&packet;

if (data_buf_ptr == NULL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this guard could move to the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants