diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-20 15:49:21 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-20 15:49:21 -0500 |
commit | 0004c30f422e702fd184a54e9f1d55da878bcd0f (patch) | |
tree | b3839fda359dcb8e7135e76efeee6073b4f920d1 | |
parent | 002140e63420e6a7acc7dfb7c5bc5d51dcfa938c (diff) | |
download | Sensor-Watch-0004c30f422e702fd184a54e9f1d55da878bcd0f.tar.gz Sensor-Watch-0004c30f422e702fd184a54e9f1d55da878bcd0f.tar.bz2 Sensor-Watch-0004c30f422e702fd184a54e9f1d55da878bcd0f.zip |
documentation fix
-rw-r--r-- | apps/spi-test/app.c | 6 | ||||
-rw-r--r-- | movement/watch_faces/sensor/accelerometer_data_acquisition_face.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/spi-test/app.c b/apps/spi-test/app.c index d00b635a..f45c783b 100644 --- a/apps/spi-test/app.c +++ b/apps/spi-test/app.c @@ -26,15 +26,15 @@ typedef union { struct { struct { uint16_t record_type : 2; // duplicate; this is the same field as info above - uint16_t accel : 14; // X acceleration value, raw, offset by 16384 + uint16_t accel : 14; // X acceleration value, raw, offset by 8192 } x; struct { uint16_t lpmode : 2; // low power mode (see lis2dw_low_power_mode_t) - uint16_t accel : 14; // Y acceleration value, raw, offset by 16384 + uint16_t accel : 14; // Y acceleration value, raw, offset by 8192 } y; struct { uint16_t filter : 2; // bandwidth filtering selection (see lis2dw_bandwidth_filtering_mode_t) - uint16_t accel : 14; // Z acceleration value, raw, offset by 16384 + uint16_t accel : 14; // Z acceleration value, raw, offset by 8192 } z; uint32_t counter : 16; // number of centiseconds since timestamp in header } data; diff --git a/movement/watch_faces/sensor/accelerometer_data_acquisition_face.h b/movement/watch_faces/sensor/accelerometer_data_acquisition_face.h index 337116a9..9cea8095 100644 --- a/movement/watch_faces/sensor/accelerometer_data_acquisition_face.h +++ b/movement/watch_faces/sensor/accelerometer_data_acquisition_face.h @@ -46,15 +46,15 @@ typedef union { struct { struct { uint16_t record_type : 2; // duplicate; this is the same field as info above - uint16_t accel : 14; // X acceleration value, raw, offset by 16384 + uint16_t accel : 14; // X acceleration value, raw, offset by 8192 } x; struct { uint16_t lpmode : 2; // low power mode (see lis2dw_low_power_mode_t) - uint16_t accel : 14; // Y acceleration value, raw, offset by 16384 + uint16_t accel : 14; // Y acceleration value, raw, offset by 8192 } y; struct { uint16_t filter : 2; // bandwidth filtering selection (see lis2dw_bandwidth_filtering_mode_t) - uint16_t accel : 14; // Z acceleration value, raw, offset by 16384 + uint16_t accel : 14; // Z acceleration value, raw, offset by 8192 } z; uint32_t counter : 16; // number of centiseconds since timestamp in header } data; |