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.
Fork of L3G4200D by
Revision 4:d99fca91fe6f, committed 2017-11-16
- Comitter:
- tedparrott6
- Date:
- Thu Nov 16 14:57:28 2017 +0000
- Parent:
- 3:14914cd8fdf3
- Commit message:
- NA
Changed in this revision
L3G4200D.cpp | Show annotated file Show diff for this revision Revisions of this file |
L3G4200D.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 14914cd8fdf3 -r d99fca91fe6f L3G4200D.cpp --- a/L3G4200D.cpp Tue Jan 24 16:58:52 2012 +0000 +++ b/L3G4200D.cpp Thu Nov 16 14:57:28 2017 +0000 @@ -74,7 +74,7 @@ } // Reads the 3 gyro channels and stores them in vector g -void L3G4200D::read(int g[3]) +void L3G4200D::read(float g[3]) { // assert the MSB of the address to get the gyro // to do slave-transmit subaddress updating.
diff -r 14914cd8fdf3 -r d99fca91fe6f L3G4200D.h --- a/L3G4200D.h Tue Jan 24 16:58:52 2012 +0000 +++ b/L3G4200D.h Thu Nov 16 14:57:28 2017 +0000 @@ -92,7 +92,7 @@ * @param g Array containing x, y, and z gyro values * @return g Array containing x, y, and z gyro values */ - void read(int g[3]); + void read(float g[3]); private: byte data[6];