Siva ram
/
BAE_hw_test1_4
nothing
Fork of BAE_hw_test1_4 by
Diff: ACS.cpp
- Revision:
- 5:4199c0dfed33
- Parent:
- 3:20647ff68b3c
- Child:
- 6:1cdbda747f99
--- 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------------------------------------------------------------------------------------------*/