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

The PickleFiles #12

Open
nimans4 opened this issue Dec 16, 2021 · 3 comments
Open

The PickleFiles #12

nimans4 opened this issue Dec 16, 2021 · 3 comments

Comments

@nimans4
Copy link

nimans4 commented Dec 16, 2021

Where can I extract all the Data which is plotted at the end ?
I want to plot my own plots in MATLAB and need a matrix which contains the arb id, id position and alle values for all sampletimes.
Are those information on the pickle files? I am not able to open those files with python...(?)

@brent-stone
Copy link
Owner

Hi there. This proof of concept doesn't have functions to save to csv at the moment but you can easily do so by adding Pandas.to_csv() or similar function in the plotting .py files/functions. Pandas also supports other file export formats like json.

@nimans4
Copy link
Author

nimans4 commented Dec 17, 2021

I tried to filter my CAN data so that I just had all CAN messages from one ID with all its decimal numbers which are represented in the bit positions which your figures said there would be written the data from a specific function ( for example my steering wheel angle ).

Then I plotted this Data in MATLAB.
The steering wheel angle is probably measured by a hall sensor, where the data output flips to a specific output when the angle of the steering wheel reaches a specific point.
And exactly like this looks my selfmade plot in MATLAB...

How did you correct those jumps ?? And why are value limits other than mine ? Do you correct those ?imageimage

@brent-stone
Copy link
Owner

Steering wheel values are frequently signed numerical data. The code assumes everything is unsigned data which will look like "jumps" from a very small value to a large value as the data moves past 0. It's a non-trivial problem to automatically detect whether data is signed or unsigned.

If you ctrl+f for "signed" in the code I believe there's a comment where this assumption is implemented. You can update that conversation to manually force everything to use 2s compliment or other strategy to correctly convert from binary to decimal.

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

No branches or pull requests

2 participants