ACS data acq changed completely. Tested and working. Deals all faults.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of QM_BAE_review_1 by
Revision 7:a46a1dee4497, committed 2016-01-23
- Comitter:
- sakthipriya
- Date:
- Sat Jan 23 11:35:20 2016 +0000
- Parent:
- 6:036d08b62785
- Child:
- 8:82250e41da81
- Commit message:
- finally vr1.1 working on shaastra day 1
Changed in this revision
EPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EPS.cpp Fri Jan 22 19:51:50 2016 +0000 +++ b/EPS.cpp Sat Jan 23 11:35:20 2016 +0000 @@ -260,7 +260,7 @@ for(int i=0; i<73;i++) BAE_chardata[i] = (char)BAE_data[i]; BAE_chardata[73] = '\0'; - printf("\n\r bae ats data %c %c %c %c", BAE_chardata[38],BAE_chardata[39],BAE_chardata[40],BAE_chardata[41]); + printf("\n\r bae ats data %c %c %c", BAE_chardata[38],BAE_chardata[39],BAE_chardata[40]); printf("\n\r BAE data is %s", BAE_chardata); }
--- 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]); }