Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
466 stars 160 forks source link

Add unit Gauss for MagneticInduction #95

Closed krwq closed 1 year ago

krwq commented 3 years ago

Would it be possible to add unit Gauss for MagneticInduction?

We currently have LSM9DS1 sensor (embedded on SenseHat) in https://github.com/dotnet/iot which provides MagneticInduction in Gauss but only available unit is Tesla.

krwq commented 3 years ago

Also for other units you can also check out what UnitsNet have here: https://github.com/angularsen/UnitsNet/tree/master/UnitsNet/GeneratedCode/Units (MIT Licensed)

briancr-ms commented 3 years ago

Thanks for your request. We're looking at enabling you to be able to add your own units (along with your own semantic types). I'll keep this issue open until we have a design to share.

rido-min commented 1 year ago

MagneticInduction with gauss and tesla units has been added to DTDL v3 quantitativeTypes https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/Docs/en-US/DTDL.quantitativeTypes.v1.md