-
Notifications
You must be signed in to change notification settings - Fork 0
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
CSV to Launch file #74
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
||
|
||
|
||
num = 0xf3626b6a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the checksum, add a note or rename the variable to specify what that is
|
||
|
||
num = 0xf3626b6a | ||
buf = 0x00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this buf for?
|
||
for col in cols_to_save: | ||
# Writes a 4 byte float | ||
if col is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment to say that you noticed that most of the values with this parameter is a 4 byte float
Implements a method to take csv data and convert it to a launch file that can be streamed to MIDAS
To change what gets written, change the information in
discriminant_to_field_names
. Each sensor discriminant should return an array of column names, None if the data does not matter, 1 if the data should be 1, or 0 if the data is a booleanTo use, run
python MIDAS/hilsim/data_converter.py <infile path> <outfile path>