vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Diff: TC.cpp
- Revision:
- 14:cf9f12b6887d
- Parent:
- 12:cb3ee1ac3638
--- a/TC.cpp Mon Jul 06 11:26:57 2015 +0000 +++ b/TC.cpp Tue Jul 14 10:14:36 2015 +0000 @@ -554,38 +554,17 @@ } else if((appdata[0]&0xF0)==0xE0){ sc.printf("RD_RTC\r\n"); //tm is func_mngmt_service_tm - uint8_t* data; - FCTN_CDMS_RD_RTC(data); telemetry_type2[0]=tmid4_spr_tm; telemetry_type2[1]=tc_pac_seq_cnt_tm; telemetry_type2[2]=tm_pac_seq_cnt_tm; - for(int i=3;i<11;i++) - { - telemetry_type2[i]=data[i-3]; - } - for(int i=0;i<13;i++) - { - sc.printf("%d\r\r\n",telemetry_type2[i]); - } for(int i=11;i<13;i++) { telemetry_type2[i]=crc_tm[i-11]; } - - - CDMS_TC_TM_FLAG|= TX_TM_STATUS; - //Send IM - //if ERR in TM CDMS_TC_TM_FLAG|= TX_TM_ERROR - CDMS_TC_TM_FLAG &=~(CDMS_TC_TM_STATUS); - for(int i=0;i<13;i++) - sd_data[i]=telemetry_type2[i]; - for(int i=13;i<512;i++) - sd_data[i]='\0'; - FCTN_WR_SD(sd_data, 512); - FCTN_RD_SD(sd_read_data,512); - sc.printf("data read from sd card\r\r\n"); - for(int i=0;i<512;i++) - sc.printf("%d ",sd_read_data[i]); + CDMS_TC_TM_FLAG|= TX_TM_STATUS; + //Send IM + //if ERR in TM CDMS_TC_TM_FLAG|= TX_TM_ERROR + CDMS_TC_TM_FLAG &=~(CDMS_TC_TM_STATUS); } else if((appdata[0]&0xF0)==0xF0){ sc.printf("SD_MNGR\r\r\n"); //tm is func_mngmt_service_tm