Team Fox / Mbed 2 deprecated BAE_QM_MAR9

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_5thJan_azad by Team Fox

Revision:
99:2cc5c0c98cb3
Parent:
97:36a91c432cb1
Child:
100:af43bc82d3eb
diff -r 321edb143f26 -r 2cc5c0c98cb3 TCTM.cpp
--- a/TCTM.cpp	Tue Feb 14 16:18:16 2017 +0000
+++ b/TCTM.cpp	Thu Mar 09 07:42:15 2017 +0000
@@ -205,6 +205,13 @@
 //included after home
 //extern void FCTN_ACS_GENPWM_MAIN();
 
+uint16_t crc_hk_data_type()//gencrc16_for_me()
+{
+    uint16_t crc = CRC::crc16_gen(&LONG_HK_data[0][0],132);//BAE_chardata i.e char data type usesd earlier BAE_HK_data
+    return crc;
+}
+
+
 uint16_t crc_hk_data()//gencrc16_for_me()
 {
     uint16_t crc = CRC::crc16_gen(&LONG_HK_data[1][0],132);//BAE_chardata i.e char data type usesd earlier BAE_HK_data
@@ -437,7 +444,7 @@
                                                                 
                                                                 telemetry[39] = BCN_FAIL_COUNT;
                                                                 telemetry[40] = actual_data.power_mode;
-                                                                telemetry[41] = HTR_CYCLE_COUNTER;//new to : implement
+                                                                telemetry[41] = HTR_CYCLE_COUNTER;//new to : implement // starts from zero and then increases
                                                                 
                                                                 // GS changed order has to be updated in the telemetry sheet or jithin should change the order
                                                                 telemetry[43] = BAE_I2C_COUNTER;
@@ -542,7 +549,7 @@
                                                                 telemetry[125] = quant_data.Batt_temp_quant[0];
                                                                 telemetry[126] = quant_data.Batt_temp_quant[1];
                                                                 
-                                                                telemetry[127] = BCN_TMP;
+                                                                telemetry[127] = BCN_TMP+50;
                                                                 
                                                                 for (int i=128; i<132;i++)
                                                                     {
@@ -1438,6 +1445,8 @@
                                                                                 //make it uint16_t
                                                                                 HTR_CYCLE_PERIOD = (tc[7]<<8) | tc[8];
                                                                                 //start BTRY_HTR_DLY_TIMER;
+                                                                                gpc.printf("\n\n\cycle_start_dly:%d   on_duration:%d:  cycle_period:%d  \n",HTR_CYCLE_START_DLY,HTR_ON_DURATION,HTR_CYCLE_PERIOD);
+                                                                            
                                                                             }
                                                                           telemetry[2]=0xA0;
                                                                     }
@@ -1786,8 +1795,8 @@
                                                                 //ACK_L234_TM
                                                                 telemetry[0]=0xB0;
                                                                 telemetry[1]=tc[0];
-                                                                //BCN_SW = 1;//here 1 is switch enable 5th dec
-                                                                BCN_TX_SW_STATUS=0x01;//BCN_TX_SW_ENABLE CHANGED TO BCN_TX_SW_STATUS
+                                                                BCN_SW = 1;//here 1 is switch enable 5th dec
+                                                                BCN_TX_SW_STATUS=0x03;//BCN_TX_SW_ENABLE CHANGED TO BCN_TX_SW_STATUS // changed to 3:: 4th march
                                                                 
                                                                 /*update in flash here*/
                                                                 uint32_t FLASH_DATA;