FSG / IMU_code_

Fork of IMU_code_7_14 by Troy Holley

Files at this revision

API Documentation at this revision

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