Skip to content

Conversation

@pozdnyakov
Copy link

This patch gets rids of 'Reading' class and re-defines reading attributes using "latest reading" terminology from Generic Sensor API (https://w3c.github.io/sensors/#latest-reading).

@pozdnyakov
Copy link
Author

@anssiko PTAL

@anssiko
Copy link
Member

anssiko commented Jan 26, 2017

Proposed to be added to the agenda for today's call.

Inline Github Issues: title
!Test Suite: <a href="https://github.com/w3c/web-platform-tests/tree/master/gyroscope">web-platform-tests on GitHub</a>
Boilerplate: omit issues-index, omit conformance
Default Biblio Status: current
Copy link
Member

Choose a reason for hiding this comment

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

Doing a link check, noticed the biblio fragments on L27-28 are broken. The Permissions spec has changed from underneath us. Upstream PR: w3c/sensors#157

Copy link
Member

Choose a reason for hiding this comment

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

We don't need to block on this, let's fix these when the upstream PR lands.

Copy link
Member

Choose a reason for hiding this comment

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

@pozdnyakov w3c/sensors#157 landed so you may want to sync accordingly.

Copy link
Author

Choose a reason for hiding this comment

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

fixed by removal

index.bs Outdated
urlPrefix: https://w3c.github.io/sensors; spec: GENERIC-SENSOR
type: dfn
text: high-level
text: sensor subclass
Copy link
Member

Choose a reason for hiding this comment

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

text: sensor

index.bs Outdated
Model {#model}
=====

The Gyroscope's associated <a>Sensor subclass</a>
Copy link
Member

Choose a reason for hiding this comment

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

<a>Sensor</a> subclass

index.bs Outdated
<a attribute for="GyroscopeReading">y</a> and
<a attribute for="GyroscopeReading">z</a> attributes to
the <a>current angular velocity</a> about the corresponding axis.
The Gyroscope extends sensor [=latest reading=] with three [=map/entries=] whose [=map/keys=] are "x", "y", "z" and whose [=map/values=]
Copy link
Member

Choose a reason for hiding this comment

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

extends sensor's

@anssiko
Copy link
Member

anssiko commented Jan 26, 2017

@tobie just committed to review this PR on the WG call.

@tobie tobie self-requested a review January 26, 2017 15:42
@pozdnyakov pozdnyakov force-pushed the remove_reading branch 2 times, most recently from 2c66ad9 to 6b2c6e3 Compare January 31, 2017 11:34
index.bs Outdated
text: latest reading
text: default sensor
text: supported reporting mode; url: supported-reporting-modes
text: auto
Copy link
Member

Choose a reason for hiding this comment

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

You can also get rid of "auto" and "supported reporting mode" here.

index.bs Outdated
=====

The Gyroscope's associated <a>Sensor subclass</a>
The Gyroscope's associated <a>Sensor</a> subclass
Copy link
Member

Choose a reason for hiding this comment

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

This should be {{Sensor}}.

index.bs Outdated
<a attribute for="GyroscopeReading">y</a> and
<a attribute for="GyroscopeReading">z</a> attributes to
the <a>current angular velocity</a> about the corresponding axis.
The Gyroscope extends sensor's [=latest reading=] with three [=map/entries=] whose
Copy link
Member

Choose a reason for hiding this comment

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

It's unclear what "The Gyroscope" refers to, here. Also why the uppercase?

I also would not use the term "extend" here.

There should be a [=latest reading=] per [=sensor=] of type gyroscope.

index.bs Outdated
### The attribute ### {#gyroscope-attribute}

The <a attribute for="GyroscopeReading">x</a> attribute of the {{GyroscopeReading}}
The <a attribute for="Gyroscope">x</a> attribute of the {{Gyroscope}}
Copy link
Member

Choose a reason for hiding this comment

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

FYI: can write this as {{Gyroscope/x!!attribute}}. Your choice, however.

@pozdnyakov
Copy link
Author

@tobie, thanks for your comments! Addressed in the latest patch.

index.bs Outdated
### The GyroscopeReading constructor ### {#gyroscope-reading-constructor}

### The attribute ### {#gyroscope-reading-attribute}
### The attribute ### {#gyroscope-attribute}
Copy link
Member

Choose a reason for hiding this comment

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

I'd title that differently. See how it's generally done in other specs: one title per attribute.

index.bs Outdated
=====

The Gyroscope's associated <a>Sensor subclass</a>
The Gyroscope's associated {{Sensor}} subclass
Copy link
Member

@tobie tobie Jan 31, 2017

Choose a reason for hiding this comment

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

Same capitalization issue here (and throughout the spec). Would be good to link these, too. Overall, it seems the model on the generic sensor side isn't clear enough. I need to work on it.

This patch gets rids of 'Reading' class and re-defines reading attributes using "latest reading" terminology from Generic Sensor API (https://w3c.github.io/sensors/#latest-reading).
@pozdnyakov
Copy link
Author

@tobie, could you please take another look?

@pozdnyakov pozdnyakov merged commit cf2de53 into gh-pages Feb 1, 2017
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.

4 participants