diff --git a/images/accelerometer_coordinate_system.png b/images/accelerometer_coordinate_system.png index 67a5027..25fd2d1 100644 Binary files a/images/accelerometer_coordinate_system.png and b/images/accelerometer_coordinate_system.png differ diff --git a/images/accelerometer_coordinate_system.svg b/images/accelerometer_coordinate_system.svg index 6e6d381..1e50701 100644 --- a/images/accelerometer_coordinate_system.svg +++ b/images/accelerometer_coordinate_system.svg @@ -1,364 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Z - -Z - Y - -Y - X - -X - - - +accelerometer_coordinate_systemZ-ZY-YX-X \ No newline at end of file diff --git a/index.bs b/index.bs index 4e344e7..155ed08 100644 --- a/index.bs +++ b/index.bs @@ -137,7 +137,7 @@ provide 0 (m/s2) [=acceleration=] value for each axis. The sign of the [=acceleration=] values must be according to the right-hand convention in a [=local coordinate system=] (see figure below). -Accelerometer coordinate system. +Accelerometer coordinate system. The {{LinearAccelerationSensor}} class is an {{Accelerometer}}'s subclass. The {{LinearAccelerationSensor}}'s [=latest reading=] contains device's [=linear acceleration=] about the corresponding axes. @@ -154,7 +154,7 @@ Reference Frame {#reference-frame} ---------------- The reference frame for the sensor classes defined in this specification, -is expressed in a [=local coordinate system=], which can be defined as +is defined with a [=local coordinate system=], which can be defined as either the [=device coordinate system=], or the [=screen coordinate system=]. The device coordinate system is defined as a three dimensional @@ -181,7 +181,8 @@ and towards the viewer (see figure below). The main difference between the [=device coordinate system=] and the [=screen coordinate system=], is that the [=screen coordinate system=] always follows the [=dom screen=] orientation, i.e. it will swap X and Y axes in relation to the device if the [=current orientation type=] -changes. In contrast, the [=device coordinate system=] will always remain the same. +changes. In contrast, the [=device coordinate system=] will always remain stationary relative to +the device. API {#api} === diff --git a/index.html b/index.html index d347e4c..04355f6 100644 --- a/index.html +++ b/index.html @@ -1431,7 +1431,7 @@

Accelerometer

-

Editor’s Draft,

+

Editor’s Draft,

This version: @@ -1614,7 +1614,7 @@

5. 2) acceleration value for each axis.

The sign of the acceleration values must be according to the right-hand convention in a local coordinate system (see figure below).

-

Accelerometer coordinate system.

+

Accelerometer coordinate system.

The LinearAccelerationSensor class is an Accelerometer's subclass. The LinearAccelerationSensor's latest reading contains device’s linear acceleration about the corresponding axes.

The linear acceleration is an acceleration that is applied to the device that hosts the sensor, without the contribution of a gravity force.

@@ -1622,7 +1622,7 @@

5. The gravity is a force that attracts an object to the center of the earth, or towards any other physical object having mass.

5.1. Reference Frame

The reference frame for the sensor classes defined in this specification, -is expressed in a local coordinate system, which can be defined as +is defined with a local coordinate system, which can be defined as either the device coordinate system, or the screen coordinate system.

The device coordinate system is defined as a three dimensional Cartesian coordinate system (x, y, z), which is bound to the physical device. @@ -1643,7 +1643,8 @@

The main difference between the device coordinate system and the screen coordinate system, is that the screen coordinate system always follows the dom screen orientation, -i.e. it will swap X and Y axes in relation to the device if the current orientation type changes. In contrast, the device coordinate system will always remain the same.

+i.e. it will swap X and Y axes in relation to the device if the current orientation type changes. In contrast, the device coordinate system will always remain stationary relative to +the device.

6. API

6.1. The SpatialSensorOptions Dictionary

enum LocalCoordinateSystem { "device", "screen" };