-
Notifications
You must be signed in to change notification settings - Fork 412
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
base: master
Are you sure you want to change the base?
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.
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 { | ||
/** |
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.
These need to be updated, see https://github.com/intel-iot-devkit/upm/blob/master/docs/documentation.md#doxygen-tags
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.
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": [""], |
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 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
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.
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": [""], |
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.
Empty, optional attributes can be removed.
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.
Updated!
src/d6t/d6t.json
Outdated
"Examples": { | ||
"C++": ["d6t.cxx"] | ||
}, | ||
"Specifications": { |
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 be removed.
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.
Updated!
"default": "" | ||
} | ||
}, | ||
"Platforms": { |
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.
Remove here as well if there are no platform notes.
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.
Updated this!
* | ||
* @return Dummy value | ||
*/ | ||
virtual float getTemperature(){return 0.0;} |
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.
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.
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.
Currently, we are not thinking in this direction.
Signed-off-by: Hiroyuki Mino [email protected]