-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: master
Are you sure you want to change the base?
Conversation
a182230
to
a2b3b93
Compare
There was a problem hiding this 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": { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default is 0
Need to update to support Default values |
Alternative to #161