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

Requesting device_data from ping360 results in an empty profile: #178

Open
patrickelectric opened this issue Mar 20, 2020 · 1 comment
Open

Comments

@patrickelectric
Copy link
Member

device_data = p.wait_message([definitions.PING360_DEVICE_DATA])

@caileighf
Copy link

I am also having issues getting data from the Ping360.

I'm not sure if I am "starting the sample" correctly. Should I be using:
ping.control_auto_transmit(start_angle, stop_angle, num_steps, delay)

OR, call this method in a loop like the example:
ping.transmitAngle(angle) (or maybe both? there aren't many comments in the ping360.py example and It's difficult to get visibility into what is going on behind the scenes.)

To retrieve the data I have tried the following two methods:
ping.wait_message([definitions.PING360_DEVICE_DATA])
ping.get_device_data()

the wait_message() method is returning None every time
the get_device_data() is returning something that looks like:
{'mode': 0, 'gain_setting': 0, 'angle': 398, 'transmit_duration': 32, 'sample_period': 80, 'transmit_frequency': 800, 'number_of_samples': 200, 'data': bytearray(b'')}

Any ideas? I don't have the version I'm using (I usually print brping._version__ but that seems to be missing.)
If there is an older version of ping-protocol that has the Ping360 portion working could you link me that branch/commit? We are planning to deploy the Ping360 in a system end of next week and I could have sworn I had the Ping360 working in the past.... I'm happy to submit the code I am running to get this behavior if that would help!

Thanks!

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