Simple version of COM_MNG_TMTC_CODE for IITMSAT.

Dependencies:   mbed-rtos mbed FreescaleIAP SimpleDMA

Revision:
164:be3b4b760d0c
Parent:
161:a63672bf4423
Child:
172:c508bbf7e89a
--- a/ThreadsAndFunctions.h	Thu Apr 14 04:34:58 2016 +0000
+++ b/ThreadsAndFunctions.h	Mon Apr 18 12:18:53 2016 +0000
@@ -104,6 +104,7 @@
         }
         else if( gFLAGS & NEW_TC_RECEIVED ){
             gPC.puts("NEW TC RECEIVED\r\n");
+            Thread::wait(10000);
             gFLAGS = gFLAGS & (~NEW_TC_RECEIVED);
             gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG;
 
@@ -146,7 +147,7 @@
 //                                DEBUF_PRINT("EXECUTING TELECOMMANDS\r\n");
                                 EXECUTE_OBOSC_ONLY;
                                 EXECUTE_TC;
-                                /*gPC.puts("COMPLETED EXECUTION\r\n");*/
+                                gPC.puts("COMPLETED EXECUTION\r\n");
                             }
                             else{
                                 gFLAGS = gFLAGS | COM_PA_HOT_FLAG;
@@ -169,7 +170,7 @@
                         }
                     }
                     else{
-                        //gPC.puts("tc list is not complete\r\n");
+                        gPC.puts("tc list is not complete\r\n");
                         if(tempContinue & 0x01){
                             //gPC.puts("last packet bit not found\r\n");
                         }
@@ -210,7 +211,7 @@
                 }
             }
             else{
-                /*gPC.puts("No valid TC received\r\n");*/
+                gPC.puts("No valid TC received\r\n");
                 RX1M.attach(&rx_read, Serial::RxIrq);
                 gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG);
                 reset_all;