![](/media/cache/group/nine_tails_kurama_by_zubair43-d4zyf5s.jpg.50x50_q85.jpg)
ACS data acq changed completely. Tested and working. Deals all faults.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of QM_BAE_review_1 by
Diff: main.cpp
- Revision:
- 7:a46a1dee4497
- Parent:
- 6:036d08b62785
- Child:
- 8:82250e41da81
diff -r 036d08b62785 -r a46a1dee4497 main.cpp --- a/main.cpp Fri Jan 22 19:51:50 2016 +0000 +++ b/main.cpp Sat Jan 23 11:35:20 2016 +0000 @@ -48,6 +48,8 @@ Timer t_rfsilence; Timer t_start; +Timer t_tc; +Timer t_tm; Serial pc(USBTX, USBRX); int power_flag_dummy=2; float data[6]; @@ -415,12 +417,18 @@ else if( slave.receive()==3 || slave.receive()==2) // slave read { read_ack=slave.read(telecommand,tc_len); + t_tc.start(); //pc.printf("\n\rTELECOMMAND received from CDMS is %s \n",telecommand); - //pc.printf("\n\r Executing Telecommand \n"); + pc.printf("\n\r Executing Telecommand \n"); // FCTN_TC_DECODE((uint8_t*) telecommand); + uint8_t* temp = FCTN_BAE_TM_TC((uint8_t*) telecommand); telemetry = (char*)temp; + FCTN_TM(); + t_tc.stop(); + printf("\n\r time taken %d",t_tc.read_us()); + t_tc.reset(); // for(int i = 0; i<134; i++) //pc.printf("%c", telemetry[i]); }