DMA issue to be tested

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
ee12b079
Date:
Fri Sep 02 20:20:26 2016 +0000
Parent:
295:699801854b71
Commit message:
Checking Science frames

Changed in this revision

Compression.h Show annotated file Show diff for this revision Revisions of this file
--- a/Compression.h	Sun Aug 28 13:53:42 2016 +0000
+++ b/Compression.h	Fri Sep 02 20:20:26 2016 +0000
@@ -164,6 +164,8 @@
             {
                 sfp_bin[i] = read_2byte(ptr + i*2);
                 scp_bin[i] += sfp_bin[i];
+                //if(i>35 && i<45)
+                    //gPC.printf("\n\rIndex: %d\t\tValue:%d",i,sfp_bin[i]);
                 if(sfp_bin[i]>sfp_threshold_m0[i])
                 {
                     //gPC.printf("\n\rSFP above threshold index:%d",i);
@@ -281,7 +283,8 @@
                     space = adjust(8, ((compress(sfp_bin[24+i],7,2))&0xff) ,pointer,space);     pointer += space>>4;    debug_cntr += space>>4;
                 }
                 for(uint8_t i = 0 ; i <12 ; i++){
-                    space = adjust(6, ((compress(sfp_bin[32+i],3,3))&0xff) ,pointer,space);     pointer += space>>4;    debug_cntr += space>>4;
+                    gPC.printf("\n\rIndex: %d\tValue:%d\t\Compressed value:%d",i,sfp_bin[32+i],((compress(sfp_bin[32+i],3,3))&0x3f));
+                    space = adjust(6, ((compress(sfp_bin[32+i],3,3))&0x3f) ,pointer,space);     pointer += space>>4;    debug_cntr += space>>4;
                 }
                 for(uint8_t i = 0 ; i < 4 ; i++){
                     space = adjust(2, (compress(sfp_bin[44+i],8,2))>>8 ,pointer,space);         pointer += space>>4;    debug_cntr += space>>4;