microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 25 forks source link

jacdac-ultrasonic get value #1291

Closed smfox10 closed 1 year ago

smfox10 commented 1 year ago

1、First time to get the distance value, it shows undefined.

2、I was expecting to get a value of 1.93m, but I get 1.931232145, too many decimal places. Do I need my firmware to fix it?

image

pelikhan commented 1 year ago

Does your firmware implement the 'reading_resolution" register? It provides a hint to the user interface about the reading resolution.

const reading_resolution: u32 @ 0x108

https://github.com/microsoft/jacdac/blob/main/services/_system.md

pelikhan commented 1 year ago

fixed in v1.9.10