Dummy program to demonstrate problems: working code

Dependencies:   SLCD mbed-rtos mbed

Fork of MNG_TC by Shreesha S

Revision:
14:a4c259ca0325
Parent:
13:7b27a8e9cbb4
--- a/MNG_TC.h	Mon Aug 03 14:29:35 2015 +0000
+++ b/MNG_TC.h	Mon Aug 17 12:05:09 2015 +0000
@@ -301,7 +301,7 @@
                 tm_ptr = EXECUTION::CDMS_RLY_TMTC(tc_ptr);
                                         
                // SEND DATA TO GS
-                snd_tm.head_pointer(tm_ptr);
+//                snd_tm.head_pointer(tm_ptr);
 
                 // for rolling buffer : 
                 // send EoS only if TM to next tc has not arrived yet
@@ -432,14 +432,24 @@
         
 //        FILL TC_EXEC_CODE
 //        APPEND CRC TO THE TM
-        L1_ACK::execode_crc(all_crc_pass, l1_ack);        
+        L1_ACK::execode_crc(all_crc_pass, l1_ack);       
 
-        snd_tm.head_pointer(l1_ack);
+        printf("Sending\r\n");
+        snd_tm.head_pointer(l1_ack_head);
+        printf("Sent\r\n");
         
         // delete the TM
         l1_ack = l1_ack_head;
         while(l1_ack != NULL){
             TM_List *temp = l1_ack->next_TM;
+            
+//            print
+            for(int i = 0 ; i < 13 ; ++i){
+                std::bitset<8> b = l1_ack->TM_string[i];
+                cout << b << " ";
+            }
+            cout << ENDL;
+            
             delete l1_ack;
             l1_ack = temp;
         }
@@ -539,7 +549,7 @@
                     while( tcp != NULL ){
                         if( EXECUTION::obosc_tc(tcp) ){
                             TM_list *tm_ptr = EXECUTION::execute_obosc(tcp);
-                            snd_tm.head_pointer(tm_ptr);
+//                            snd_tm.head_pointer(tm_ptr);
                             if( EXECUTION::detect_ack(tm_ptr) ){
                                 tcp->exec_status = 1;
                             }