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 IMU_code_7_14 by
Revision 3:232de5807dac, committed 2017-07-21
- Comitter:
- mdavis30
- Date:
- Fri Jul 21 13:29:26 2017 +0000
- Parent:
- 2:b00adea2187b
- Commit message:
Changed in this revision
| IMU_code.cpp | Show annotated file Show diff for this revision Revisions of this file |
| IMU_code.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/IMU_code.cpp Mon Jul 17 14:23:51 2017 +0000
+++ b/IMU_code.cpp Fri Jul 21 13:29:26 2017 +0000
@@ -157,9 +157,15 @@
float IMU_code::IMU_pitch()
{
- return stab_accel[2]; //using the yaw axis
+ return stab_accel[1]; //using the pitch axis
+ //return (stab_accel[2]);
}
+/*float IMU_code::IMU_yaw()
+{
+ return stab_accel[2];
+}*/
+
double double_from_le_bytes(unsigned char * p_to_double)
{
unsigned char temp[8];
--- a/IMU_code.h Mon Jul 17 14:23:51 2017 +0000
+++ b/IMU_code.h Fri Jul 21 13:29:26 2017 +0000
@@ -17,6 +17,7 @@
IMU_code(); //pass variables to a constructor (don't need anything passed to it)
string IMU_run(); //function ()
float IMU_pitch(); //temporary change
+ float IMU_yaw();
};
#endif /* IMU_CODE_H_ */
\ No newline at end of file
