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 device classes #65

Merged
merged 12 commits into from
Aug 29, 2019
Merged

Add device classes #65

merged 12 commits into from
Aug 29, 2019

Conversation

jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Aug 27, 2019

Needs #66

This pr adds a PingDevice base class, and Ping1D and Ping360 sub-classes. This is analagous to our PingSensor class in ping-viewer.

We have already the message-api for ping360. This adds a device-api with easy calls like setAngle() and setGain().

There are test cases for each device class when the module is run as main.

@jaxxzer jaxxzer requested a review from Williangalvani August 27, 2019 18:06
@jaxxzer jaxxzer changed the title [WIP] Add device classes Add device classes Aug 27, 2019
Copy link
Member

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

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

Looks good, I'll try to test it here

generate/templates/device.py.in Show resolved Hide resolved
generate/templates/device.py.in Outdated Show resolved Hide resolved
generate/templates/device.py.in Outdated Show resolved Hide resolved
@jaxxzer jaxxzer force-pushed the device branch 2 times, most recently from ab3cf9b to 4a66376 Compare August 28, 2019 18:12
generate/templates/device.py.in Show resolved Hide resolved
generate/templates/device.py.in Show resolved Hide resolved
@jaxxzer jaxxzer merged commit 134a013 into bluerobotics:master Aug 29, 2019
@jaxxzer jaxxzer deleted the device branch August 29, 2019 17:20
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.

2 participants