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.
Dependents: Aigamozu_Robot_March
Revision 2:b03a80d9eade, committed 2016-01-27
- Comitter:
- s1200058
- Date:
- Wed Jan 27 12:15:05 2016 +0000
- Parent:
- 1:b2263c93d1d4
- Child:
- 3:00c23c8ff4d8
- Commit message:
- for sensor
Changed in this revision
| setting.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/setting.cpp Fri Jan 22 18:59:33 2016 +0000
+++ b/setting.cpp Wed Jan 27 12:15:05 2016 +0000
@@ -135,30 +135,10 @@
}
}
*/
- if(flag <= 20){
- caribAcc.x += x;
- caribAcc.y += y;
- caribAcc.z += z;
-
agzAcc.x = x;
agzAcc.y = y;
agzAcc.z = z;
- }
-
- else{
-
- agzAcc.x = x - caribAcc.x;
- agzAcc.y = y - caribAcc.y;
- agzAcc.z = z - caribAcc.z;
-
- }
-
- if(flag == 20){
- caribAcc.x /= 20;
- caribAcc.y /= 20;
- caribAcc.z /= 20;
- }
}