things are working

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of CDMS_DEC_2016_jan by Team Fox

Files at this revision

API Documentation at this revision

Comitter:
cholletisaik777
Date:
Sat Jan 23 11:33:47 2016 +0000
Parent:
3:23cdab96a05d
Commit message:
things are working

Changed in this revision

CDMS_HK.cpp Show annotated file Show diff for this revision Revisions of this file
TMTC.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CDMS_HK.cpp	Sat Jan 23 09:26:14 2016 +0000
+++ b/CDMS_HK.cpp	Sat Jan 23 11:33:47 2016 +0000
@@ -25,7 +25,7 @@
     int HK_I2C;
     char BAE_HK[74];
     FCTN_I2C_READ(BAE_HK,74);
-    printf("BAE_HK=%s",BAE_HK);
+    printf("BAE_HK=%c %c %c",BAE_HK[38], BAE_HK[39],BAE_HK[40]);
     /*if(HK_I2C==0)
     {
         if(Power_level!=0)
--- a/TMTC.cpp	Sat Jan 23 09:26:14 2016 +0000
+++ b/TMTC.cpp	Sat Jan 23 11:33:47 2016 +0000
@@ -37,11 +37,11 @@
             FCTN_I2C_WRITE((char*)tc->TC_string);
             while(1)
             {
-                wait(1); //TimeOut instead of wait
+                wait(1.5); //TimeOut instead of wait
                 if(tm_status_4m_slv == 1)
                 {
                     printf("receiving...\r\n");
-                    FCTN_I2C_READ((char*)tm_pointer->TM_string,135);
+                    FCTN_I2C_READ((char*)tm_pointer->TM_string,134);
                     //printf("%s", tm_pointer->TM_string);
                     received+=1;
                     tm_pointer = tm_pointer->next_TM;
--- a/main.cpp	Sat Jan 23 09:26:14 2016 +0000
+++ b/main.cpp	Sat Jan 23 11:33:47 2016 +0000
@@ -113,8 +113,10 @@
     irpt_2_slv=0;
     FCTN_CDMS_SD_INIT();
     FCTN_CDMS_INIT_RTC();
-    RtosTimer TIMER_HK_ACQ(T_CDMS_RLY_TMTC,osTimerPeriodic);
+    RtosTimer TIMER_HK_ACQ(TSC_HK_BAE_CDMS_PL_MODE,osTimerPeriodic);
+    RtosTimer TIMER_TMTC(T_CDMS_RLY_TMTC,osTimerPeriodic);
     TIMER_HK_ACQ.start(20000);
+    TIMER_TMTC.start(10000);
     //ptr_t_tmtc = new Thread (T_CDMS_RLY_TMTC);
     ptr_t_sc_data = new Thread (T_PL_RCV_SC_DATA);
     pl_sc_data.rise(&ISR_PL_RCV_SC_DATA);