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

d6t: initial implementation of Omron Thermal Sensor d6t #683

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

omron-ankit
Copy link

Signed-off-by: Hiroyuki Mino [email protected]

Copy link
Contributor

@Propanu Propanu left a comment

Choose a reason for hiding this comment

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

Some minor updates needed to match the documentation and JSON sensor specification. Implementation looks good to me for the most part too.
I do highly appreciate you implementing the iTemperature interface and adapting it to this sensor.

/*=========================================================================*/

namespace upm {
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Updated!

src/d6t/d6t.json Outdated
"Name": "API for D6T Sensor",
"Description": "This is the UPM Module for Omron MEMS D6T Thermal Sensor",
"Aliases": [""],
"Categories": [""],
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a mandatory JSON attribute, look at https://raw.githubusercontent.com/intel-iot-devkit/upm/master/src/groups.md for possible values.

The JSON spec is explained in more detail here: https://github.com/intel-iot-devkit/upm/blob/master/docs/documentation.md#the-library-json-file

Copy link
Author

Choose a reason for hiding this comment

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

Updated!

src/d6t/d6t.json Outdated
"d6t": {
"Name": "API for D6T Sensor",
"Description": "This is the UPM Module for Omron MEMS D6T Thermal Sensor",
"Aliases": [""],
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty, optional attributes can be removed.

Copy link
Author

Choose a reason for hiding this comment

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

Updated!

src/d6t/d6t.json Outdated
"Examples": {
"C++": ["d6t.cxx"]
},
"Specifications": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be removed.

Copy link
Author

Choose a reason for hiding this comment

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

Updated!

"default": ""
}
},
"Platforms": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove here as well if there are no platform notes.

Copy link
Author

Choose a reason for hiding this comment

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

Updated this!

*
* @return Dummy value
*/
virtual float getTemperature(){return 0.0;}
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be preferred not to hide the default interface call if possible, but it's understandable if it makes no sense for your sensor. Have you thought about maybe having this return the average of the sensor's zones? I'm thinking that would make for a quick and easy way to test if these devices power on correctly.

Copy link
Author

Choose a reason for hiding this comment

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

Currently, we are not thinking in this direction.

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