Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/MicroBitAccelerometer.cpp
- Revision:
- 37:b624ae5e94a5
- Parent:
- 6:2e1c2e0d8c7a
- Child:
- 38:1a9e8e5e23f2
--- a/source/drivers/MicroBitAccelerometer.cpp Wed Jul 13 12:18:15 2016 +0100
+++ b/source/drivers/MicroBitAccelerometer.cpp Wed Jul 13 12:18:16 2016 +0100
@@ -312,7 +312,7 @@
* Service function.
* Determines a 'best guess' posture of the device based on instantaneous data.
*
- * This makes no use of historic data, and forms this input to the filter implemented in updateGesture().
+ * This makes no use of historic data, and forms the input to the filter implemented in updateGesture().
*
* @return A 'best guess' of the current posture of the device, based on instanataneous data.
*/
@@ -323,7 +323,7 @@
// Test for shake events.
// We detect a shake by measuring zero crossings in each axis. In other words, if we see a strong acceleration to the left followed by
- // a string acceleration to the right, then we can infer a shake. Similarly, we can do this for each acxis (left/right, up/down, in/out).
+ // a strong acceleration to the right, then we can infer a shake. Similarly, we can do this for each axis (left/right, up/down, in/out).
//
// If we see enough zero crossings in succession (MICROBIT_ACCELEROMETER_SHAKE_COUNT_THRESHOLD), then we decide that the device
// has been shaken.
