-
Notifications
You must be signed in to change notification settings - Fork 113
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
[RSDK-1675] Board data collector #1743
Conversation
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.
Approving so this doesn't need to wait on my review again, but do think one change needs to be made regarding exporting those structs you defined
components/board/collector.go
Outdated
return "Unknown" | ||
} | ||
|
||
type analogRecords struct { |
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.
I believe the structs returned by the capture functions need to be public for the protoutils.StructToStructPb
method to be able to properly convert them to a proto struct. Can't seem to find the repo on github and link, but from the doc string:
// StructToStructPb converts an arbitrary Go struct to a *structpb.Struct. Only exported fields are included in the
// returned proto.
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.
make sense I'll change that before merging
|
PR to add a board data collector focusing on Analogs & GPIO state. Let me know if there are any changes I should make