working version
Dependencies: mbed mbed-rtos SimpleDMA FreescaleIAP eeprom
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: COM_MNG_TMTC.h
- Revision:
- 154:9aec89c8cdc7
- Parent:
- 142:83f48d1a1bc5
- Child:
- 161:a63672bf4423
--- a/COM_MNG_TMTC.h Wed Apr 06 13:11:15 2016 +0000 +++ b/COM_MNG_TMTC.h Mon Apr 11 16:04:55 2016 +0000 @@ -299,9 +299,9 @@ //Data[0] = FCTN_CDMS_RD_FLASH(0); //Data[1] = FCTN_CDMS_RD_FLASH(1); //tm_pointer = new Long_tm; - tm_pointer->TM_string[0] = 0x30; + tm_pointer->TM_string[0] = 0xB0; tm_pointer->TM_string[1] = GETpacket_seq_count(tc_ptr); - tm_pointer->TM_string[2] = (uint8_t)(flash_counter); + tm_pointer->TM_string[2] = ACKCODE; for(uint8_t i=0;i<4;i++) { tm_pointer->TM_string[3+i] = (uint8_t)((Data[0]>>(8*i))&0x00FF); @@ -310,7 +310,7 @@ { tm_pointer->TM_string[3+i] = (uint8_t)((Data[1]>>(8*i))&0x00FF); } - crc16 = crc16_gen(tm_ptr->TM_string,9); + crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); tm_pointer->next_TM = NULL; return tm_ptr;