sensors icon indicating copy to clipboard operation
sensors copied to clipboard

Sensor.frequency needs to be setable to allow frequency adaptation

Open tobie opened this issue 10 years ago • 7 comments

Use case here is for example frequency of geo-location sensor for live positioning on a map which needs to be high when a map is zoomed in but can be much lower when the map is zoomed out.

More on this gist.

tobie avatar Sep 04 '15 09:09 tobie

Can this requirement be generalized to apply to any other properties?

anssiko avatar Sep 04 '15 13:09 anssiko

This is definitely important and a hard lesson learned by Johnny-Five—which is currently in the planning process of migrating all sensor component classes to support changing frequency after a sensor instance object has been created.

rwaldron avatar Sep 04 '15 14:09 rwaldron

Thanks for validating this with actual implementer feedback, @rwaldron.

tobie avatar Sep 08 '15 07:09 tobie

As a sidenote, this probably should be a method returning a promise.

tobie avatar Jan 21 '16 21:01 tobie

@pozdnyakov This is same issue as #139 , I still think we should split parameters that are mutable during lifecycle of a sensor, frequency is one of such parameters.

alexshalamov avatar Jun 29 '17 07:06 alexshalamov

All - I'm hearing this issue should be after all deferred to Level 2. Please let us know if you think otherwise.

anssiko avatar Feb 07 '18 11:02 anssiko

I've heard no concerns since airing the proposal two week ago, so I have made a decision to defer this issue (back) to Level 2.

(We will likely revisit this issue when the Geolocation Sensor spec commences to this WG as proposed in the Charter draft. I opened a respective issue for the Geolocation Sensor spec https://github.com/WICG/geolocation-sensor/issues/16 to incubate the idea there meanwhile.)

anssiko avatar Feb 21 '18 11:02 anssiko