with i2c

Dependencies:   mbed-rtos mbed

Fork of BAE_b4hw_test by sakthi priya amirtharaj

Revision:
5:4199c0dfed33
Parent:
3:20647ff68b3c
Child:
6:1cdbda747f99
diff -r b33bc4267e0d -r 4199c0dfed33 ACS.cpp
--- a/ACS.cpp	Tue Feb 03 16:43:05 2015 +0000
+++ b/ACS.cpp	Thu Feb 05 22:05:29 2015 +0000
@@ -64,7 +64,7 @@
          }
          else if(ix==0)
          {
-             DCx = 50;
+             DCx = 75;
             PWM1.period(timep);
             PWM1 = DCx/100 ;            
          }
@@ -72,8 +72,8 @@
          {
             // printf("!!!!!!!!!!Error!!!!!!!!!");
          } 
-         
-    printf("\n\r moment :%f\n\r",DCx);
+    //DCx = 25;     
+    printf("\n\r icx :%f\n\r",DCx);
     float DCy = 0;         //Duty cycle of Moment in x, y, z directions
      float iy = 0;          //Current sent in x, y, z TR's
        
@@ -205,7 +205,7 @@
 
 float* FUNC_ACS_MAG_EXEC()
 {
-   //printf("\n\rEntered magnetometer function\n\r");
+   printf("\n\rEntered magnetometer function\n\r");
    //DRDY.output();
    DRDY.write(0);
    int a;
@@ -269,6 +269,8 @@
  }
  
 } 
+
+
 /*------------------------------------------------------------------------------------------------------------------------------------------------------
 -------------------------------------------CONTROL ALGORITHM------------------------------------------------------------------------------------------*/