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

ping360: update reserved fields #205

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

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented Dec 14, 2023

Alternative to #161

Copy link
Contributor

@ES-Alexander ES-Alexander left a comment

Choose a reason for hiding this comment

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

This looks ok to me :-)

I am a little concerned about future-proofing, because some of the fields (e.g. transmit frequency and sample number) have been defined for our specific sensor rather than being generic protocol things with each sensor defining its own limits, but I'm not sure how feasible that is to change at this stage, since those limits are already in place in Ping Viewer and whatnot anyway, and I'm assuming we don't have a lot of development resources available to work on this at the moment.

@@ -87,61 +125,111 @@
{
"name": "gain_setting",
"type": "u8",
"description": "Analog gain setting (0 = low, 1 = normal, 2 = high)"
"description": "Analog gain setting",
"enum": {
Copy link
Member

Choose a reason for hiding this comment

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

Can we have a default value with enum?

Copy link
Member

Choose a reason for hiding this comment

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

default is 0

@@ -31,37 +39,67 @@
{
"name": "gain_setting",
"type": "u8",
"description": "Analog gain setting (0 = low, 1 = normal, 2 = high)"
"description": "Analog gain setting",
"enum": {
Copy link
Member

Choose a reason for hiding this comment

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

default is 0

@patrickelectric patrickelectric marked this pull request as draft July 29, 2024 17:09
@patrickelectric
Copy link
Member Author

Need to update to support Default values

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