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

DCA1000.organize: fixed formatting for xWR14xx and other sensors #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kcelebi
Copy link

@kcelebi kcelebi commented Jul 28, 2021

TheDCA1000.organize method in adc.py does not correctly format the ADC data according to TI standards for certain sensors. This commit adds capability for all sensors that fall under xWR14xx, xWR16xx, IWR6843 types for both real and complex data formats. TI data format standards for these models can be found in this PDF.

An additional parameter sensor_type is added to DCA1000.organize in order to distinguish between these sensor types and their data formats.

This commit adds a method generalizedSensorType that, given a sensor name, returns the generalized name it belongs to. For example generalizedSensorType("IWR1438") --> "xWR14xx".

@edwin-pan edwin-pan self-assigned this Jul 30, 2021
ret = np.zeros(len(raw_frame) // 2, dtype=complex)
ret = None

sensor_type = self.generalizedSensorType(sensor_type)

Choose a reason for hiding this comment

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

i believe this is a wrong insertion

Copy link
Author

Choose a reason for hiding this comment

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

What about it do you think is incorrect? I set ret to None b/c for real or complex data the size of ret should be different, they are then respectively defined in a later section. The generalizedSensorType is just one way of categorizing the different ways to partition the data.

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