Updated PWM working; Entering nominal mode

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of TFR_BAE_vr1_1working_finally_USE_FOR_TESTING by Team Fox

Files at this revision

API Documentation at this revision

Comitter:
sakthipriya
Date:
Sat Jan 23 11:35:20 2016 +0000
Parent:
6:036d08b62785
Child:
8:24f73f54e44a
Commit message:
finally vr1.1 working on shaastra day 1

Changed in this revision

EPS.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/EPS.cpp	Fri Jan 22 19:51:50 2016 +0000
+++ b/EPS.cpp	Sat Jan 23 11:35:20 2016 +0000
@@ -260,7 +260,7 @@
     for(int i=0; i<73;i++)
         BAE_chardata[i] = (char)BAE_data[i];
     BAE_chardata[73] = '\0';
-    printf("\n\r bae ats data %c %c %c %c", BAE_chardata[38],BAE_chardata[39],BAE_chardata[40],BAE_chardata[41]);
+    printf("\n\r bae ats data %c %c %c", BAE_chardata[38],BAE_chardata[39],BAE_chardata[40]);
     printf("\n\r BAE data is %s", BAE_chardata);
     
 }
--- a/main.cpp	Fri Jan 22 19:51:50 2016 +0000
+++ b/main.cpp	Sat Jan 23 11:35:20 2016 +0000
@@ -48,6 +48,8 @@
 
 Timer t_rfsilence;
 Timer t_start;
+Timer t_tc;
+Timer t_tm;
 Serial pc(USBTX, USBRX);
 int power_flag_dummy=2;
 float data[6];
@@ -415,12 +417,18 @@
         else if( slave.receive()==3 ||  slave.receive()==2)             // slave read 
         {
            read_ack=slave.read(telecommand,tc_len);
+           t_tc.start();
            //pc.printf("\n\rTELECOMMAND received from CDMS is %s \n",telecommand);
-           //pc.printf("\n\r Executing Telecommand \n"); 
+           pc.printf("\n\r Executing Telecommand \n"); 
            // FCTN_TC_DECODE((uint8_t*) telecommand);
+           
            uint8_t* temp = FCTN_BAE_TM_TC((uint8_t*) telecommand);
            telemetry = (char*)temp;
+          
            FCTN_TM();
+            t_tc.stop();
+           printf("\n\r time taken %d",t_tc.read_us());
+            t_tc.reset();
             // for(int i = 0; i<134; i++)
             //pc.printf("%c", telemetry[i]);
         }