![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pcb test start
Fork of BAE_hw_test1_5 by
Diff: main.cpp
- Revision:
- 2:edd107ea4740
- Parent:
- 1:deb3c0fafa3a
- Child:
- 3:20647ff68b3c
--- a/main.cpp Sat Dec 20 05:56:04 2014 +0000 +++ b/main.cpp Fri Dec 26 06:12:09 2014 +0000 @@ -9,6 +9,7 @@ Serial pc(USBTX, USBRX); +//extern DigitalOut DRDY; InterruptIn interrupt(D9); InterruptIn master_reset(D8); @@ -68,7 +69,7 @@ while(1) { Thread::signal_wait(0x2); - SensorQuantised.power_mode='0'; + SensorQuantised.power_mode='3'; printf("\nTHIS IS HK %f\n",t1.read()); t.start(); FUNC_HK_FAULTS(); @@ -100,7 +101,7 @@ t.start(); mag_field= FUNC_ACS_MAG_EXEC(); //actual execution omega = FUNC_ACS_EXEC_GYR(); - + printf("\n gyr 1 value %f",omega[0]); if(acs_pflag == 1) @@ -381,7 +382,7 @@ uint16_t schedcount=1; void T_SC(void const *args) { - + //DRDY=0; printf("The value of i in scheduler is %d\n",schedcount); if(schedcount == 65532) //to reset the counter { @@ -415,7 +416,7 @@ int main() { t1.start(); - + //DRDY=0; FUNC_ACS_MAG_INIT(); FUNC_ACS_INIT_GYR(); @@ -461,6 +462,7 @@ { //Thread::wait(10000); //ir2master(); + //DRDY = 0; Thread::wait(5000); }