
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 149:827e23febfdf, committed 2016-04-06
- Comitter:
- krishanprajapat
- Date:
- Wed Apr 06 13:04:35 2016 +0000
- Parent:
- 148:46763854fa83
- Child:
- 150:fa3940954b1e
- Commit message:
- OBSRS TM completed,ACKL1 remaining. ; uncomment write_to_sdcard, delete tm, restart_adf, sids in sdcard code, invalid fsc not done,
Changed in this revision
COM_SND_TM.h | Show annotated file Show diff for this revision Revisions of this file |
OBSRS.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/COM_SND_TM.h Wed Apr 06 10:22:10 2016 +0000 +++ b/COM_SND_TM.h Wed Apr 06 13:04:35 2016 +0000 @@ -236,9 +236,6 @@ ConvObj2.convolutionEncode(ptr, convoluted_frame); ConvObj2.convolutionEncode(ptr + 67, convoluted_frame + 135); } - - - unsigned char interleave_data[2][144]; unsigned char DS_index; bool DS_state; int DS_counter;
--- a/OBSRS.h Wed Apr 06 10:22:10 2016 +0000 +++ b/OBSRS.h Wed Apr 06 13:04:35 2016 +0000 @@ -8,7 +8,7 @@ // Illegal TC Case 3 ackl234new->TM_string[2] = (000_0010) = 0x_2; spare = 0 00000010 = 0x02 invalid SID #define TMID_ACK_L234 0xB -#define T_frames_in_segment 20 +#define T_frames_in_segment 40 using namespace std; Base_tc *current_obsrs_tc = NULL; @@ -503,13 +503,14 @@ create_Ack_andcallsign = false; Base_tm *ack_and_callsign = NULL; Base_tm *ack_head = NULL; - get_call_sign(ack_and_callsign); +// get_call_sign(ack_and_callsign); + get_ack_l234(ack_and_callsign); ack_head = ack_and_callsign; - get_ack_l1(ack_and_callsign->next_TM); + get_ack_l1(ack_and_callsign->next_TM); while(ack_and_callsign->next_TM != NULL){ ack_and_callsign = ack_and_callsign->next_TM; } - get_ack_l234(ack_and_callsign->next_TM); + get_call_sign(ack_and_callsign->next_TM); snd_tm.head_pointer_sdcard(ack_head); T_frame_in_Ackandcallsign = 2*snd_tm.make_shor_tm(); /* gPC.printf(" T_frame_in_Ackandcallsign = %d\r\n",T_frame_in_Ackandcallsign);*/ @@ -580,7 +581,6 @@ else{ read_success = SD_READ(buffer_512, list_of_FSC[block_counter],SID); } - ack_code = read_success; block_counter++; if(block_counter == no_of_frames){ last_block=true; @@ -588,6 +588,7 @@ enable_read_block = false; if(read_success == 0){ // cout<<"read one block successfully"<<" "; + ack_code = 0xA0; enable_T_frame = true; enable_SCH = true; }