Dummy program to demonstrate problems: working code

Dependencies:   SLCD mbed-rtos mbed

Fork of MNG_TC by Shreesha S

Revision:
13:7b27a8e9cbb4
Parent:
8:cb93c1d3209a
Child:
14:a4c259ca0325
--- a/MNG_TC.h	Thu Jul 16 14:14:41 2015 +0000
+++ b/MNG_TC.h	Mon Aug 03 14:29:35 2015 +0000
@@ -46,6 +46,8 @@
 
 // TMID list
 #define TMID_ACK_L1 10
+#define TM_SHORT_SIZE 13
+#define TM_TYPE1_SIZE 134
 
 namespace MNG_TC
 {
@@ -288,7 +290,7 @@
             return NULL;
         }
         
-        bool inline execute_core(TC_list *tc_ptr){
+        bool execute_core(TC_list *tc_ptr){
             printf("executing core psc = %u\r\n", psc);
             
             if( !EXECUTION::sdCardOp(tc_ptr) ){
@@ -299,7 +301,8 @@
                 tm_ptr = EXECUTION::CDMS_RLY_TMTC(tc_ptr);
                                         
                // SEND DATA TO GS
-//                SND_TM(tm_ptr);
+                snd_tm.head_pointer(tm_ptr);
+
                 // for rolling buffer : 
                 // send EoS only if TM to next tc has not arrived yet
                 // else put the next TM itself.
@@ -324,6 +327,7 @@
             }
             else{
                 // write sd card code
+                read_TC(tc_ptr);
             }
             return true;
         }
@@ -430,7 +434,7 @@
 //        APPEND CRC TO THE TM
         L1_ACK::execode_crc(all_crc_pass, l1_ack);        
 
-//        SND_TM(l1_ack);
+        snd_tm.head_pointer(l1_ack);
         
         // delete the TM
         l1_ack = l1_ack_head;
@@ -535,7 +539,7 @@
                     while( tcp != NULL ){
                         if( EXECUTION::obosc_tc(tcp) ){
                             TM_list *tm_ptr = EXECUTION::execute_obosc(tcp);
-//                            SND_TM(tm_ptr);
+                            snd_tm.head_pointer(tm_ptr);
                             if( EXECUTION::detect_ack(tm_ptr) ){
                                 tcp->exec_status = 1;
                             }